A - the type of the aggregate root class.K - the type of the aggregate root class.public interface GenericRepository<A extends AggregateRoot<K>,K> extends Repository<A,K>
To be a valid repository interface, Type must respect the followings:
GenericRepositoryThe following is a valid Domain repository interface.
public interface ProductRepository extends GenericRepository<Product,String> {
// nothing needed, but you can add methods with specifics
// then implements them
}
Then this interface has to be implemented by the actual repository implementation.
clear, count, delete, delete, exists, getAggregateRootClass, getKeyClass, load, persist, saveCopyright © 2013-2016–2016 SeedStack. All rights reserved.