Answers for "spring data jpa inheritance repository"

0

spring data jpa inheritance repository

@NoRepositoryBean
public interface AbstractRepository<T extends AbstractEquipment> 
        extends CrudRepository<T, Long>{

 @Query("select e from #{#entityName} as e from equipment where e.name = equipmentName")
 T findEquipmentByName(String equipmentName);

}
Posted by: Guest on April-07-2020
0

spring data jpa inheritance repository

@Transactional
public interface SpecialEquipmentRepo extends AbstractRepository<SpecialEquipment,Long>{

}
Posted by: Guest on April-07-2020

Code answers related to "spring data jpa inheritance repository"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language