Search in sources :

Example 1 with RelationshipRepositoryStub

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();
}
Also used : RelationshipRepositoryStub(io.crnk.client.legacy.RelationshipRepositoryStub) RelationshipRepositoryAdapter(io.crnk.core.engine.internal.repository.RelationshipRepositoryAdapter)

Aggregations

RelationshipRepositoryStub (io.crnk.client.legacy.RelationshipRepositoryStub)1 RelationshipRepositoryAdapter (io.crnk.core.engine.internal.repository.RelationshipRepositoryAdapter)1