Answers for "Spring JPA inheritance"

0

https://www.baeldung.com/hibernate-inheritance

@MappedSuperclass
public class Person {
 
    @Id
    private long personId;
    private String name;
 
    // constructor, getters, setters
}
Posted by: Guest on May-28-2020
0

https://www.baeldung.com/hibernate-inheritance

@Entity
public class MyEmployee extends Person {
    private String company;
    // constructor, getters, setters 
}
Posted by: Guest on May-28-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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language