#350 - ENH: Add @History findVersions() query ... returning historic versions for a given bean using history view

This commit is contained in:
Robin Bygrave
2015-07-24 16:20:15 +12:00
parent 61a0651439
commit 1ec2f74df9
29 changed files with 500 additions and 111 deletions
+9
View File
@@ -720,6 +720,15 @@ public interface Query<T> extends Serializable {
@Nullable
T findUnique();
/**
* Return versions of a @History entity bean.
* <p>
* Generally this query is expected to be a find by id or unique predicates query.
* It will execute the query against the history returning the versions of the bean.
* </p>
*/
List<Version<T>> findVersions();
/**
* Return the count of entities this query should return.
* <p>