use of io.crnk.client.legacy.RelationshipRepositoryStub in project crnk-framework by crnk-project.
the class CrnkClient method getQueryParamsRepository.
/**
* @param sourceClass source class
* @param targetClass target class
* @return stub for the relationship between the given source and target
* class
* @deprecated make use of QuerySpec
*/
@SuppressWarnings({ "unchecked", "rawtypes" })
public <T, I extends Serializable, D, J extends Serializable> RelationshipRepositoryStub<T, I, D, J> getQueryParamsRepository(Class<T> sourceClass, Class<D> targetClass) {
init();
RelationshipRepositoryAdapter repositoryAdapter = allocateRepositoryRelation(sourceClass, targetClass);
return (RelationshipRepositoryStub<T, I, D, J>) repositoryAdapter.getRelationshipRepository();
}
Aggregations