Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-3555 - Extendend Envers Criteria API to express relation traversion
(traverseRelation) with different Join Types. Implementation is done for inner joins and will be extended to support further join types in future commits.
- Loading branch information
Showing
42 changed files
with
1,012 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
hibernate-envers/src/main/java/org/hibernate/envers/query/AuditAssociationQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* | ||
*/ | ||
package org.hibernate.envers.query; | ||
|
||
import org.hibernate.CacheMode; | ||
import org.hibernate.FlushMode; | ||
import org.hibernate.LockMode; | ||
import org.hibernate.envers.query.criteria.AuditCriterion; | ||
import org.hibernate.envers.query.order.AuditOrder; | ||
import org.hibernate.envers.query.projection.AuditProjection; | ||
|
||
/** | ||
* @author Felix Feisst (feisst dot felix at gmail dot com) | ||
*/ | ||
public interface AuditAssociationQuery<Q extends AuditQuery> extends AuditQuery { | ||
|
||
@Override | ||
AuditAssociationQuery<Q> add(AuditCriterion criterion); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> addOrder(AuditOrder order); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> addProjection(AuditProjection projection); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setMaxResults(int maxResults); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setFirstResult(int firstResult); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setCacheable(boolean cacheable); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setCacheRegion(String cacheRegion); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setComment(String comment); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setFlushMode(FlushMode flushMode); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setCacheMode(CacheMode cacheMode); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setTimeout(int timeout); | ||
|
||
@Override | ||
AuditAssociationQuery<Q> setLockMode(LockMode lockMode); | ||
|
||
Q up(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.