Beispiel #1
0
 @Override
 public <T> Object getRelation(
     Object entity,
     RelationshipType relationshipType,
     String relationName,
     Class<T> relationClass,
     EntityDictionary dictionary,
     Set<Predicate> filters) {
   DataStoreTransaction transaction = getTransaction(entity.getClass());
   return transaction.getRelation(
       entity, relationshipType, relationName, relationClass, dictionary, filters);
 }
Beispiel #2
0
 @Override
 public <T> Object getRelation(
     Object entity,
     RelationshipType relationshipType,
     String relationName,
     Class<T> relationClass,
     EntityDictionary dictionary,
     Optional<FilterExpression> filterExpression,
     Sorting sorting,
     Pagination pagination) {
   DataStoreTransaction transaction = getTransaction(entity.getClass());
   return transaction.getRelation(
       entity,
       relationshipType,
       relationName,
       relationClass,
       dictionary,
       filterExpression,
       sorting,
       pagination);
 }