Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }