AGGREGATE - the type of the aggregate root class.KEY - the type of the aggregate root class.public interface GenericRepository<AGGREGATE extends AggregateRoot<KEY>,KEY> extends Repository<AGGREGATE,KEY>
GenericRepository
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 . See BaseRepository for details.delete, delete, getAggregateRootClass, getKeyClass, load, persist, saveCopyright © 2013-2015–2015. All rights reserved.