HHH-8070 - Updated documentation to reflect the 'in' operator usage.

This commit is contained in:
Chris Cranford 2016-05-12 10:39:25 -05:00
parent 383972d6c2
commit dc44ef9378
1 changed files with 2 additions and 0 deletions

View File

@ -468,6 +468,8 @@ And to select only entities that are related to a given entity:
query.add( AuditEntity.property( "address" ).eq( relatedEntityInstance ) );
// or
query.add( AuditEntity.relatedId( "address" ).eq( relatedEntityId ) );
// or
query.add( AuditEntity.relatedId( "address" ).in( relatedEntityId1, relatedEntityId2 ) );
----
You can limit the number of results, order them, and set aggregations and projections (except grouping) in the usual way.