• JPA one to one mapping with annotation (Java persistence API)
  • n a bi-directional one to one mapping, both sides are responsibve for managing the relationship and hence both entities must have each other's instances setted to their instance using getters and setters, failing so will end up inserting a null in the db foreign key columns and one could not be able to get other object's details with one object.


  • JPA one to many mapping with annotation (Java persistence API)
  • In previous article we have seen, how to configure one to one mapping in JPA in both unidirectional and bidirectional way. In this article we will see how yo configure one to many mappings in JPA using annotations.


  • JPA many to many mapping with annotation (Java persistence API)
  • In previous articles we have seen one to one and one to many mappings in JPA. In this article we will see how to configure and use Many to Many mappings in JPA.


  • JPA Inheritance Strategies using annotations - Table per hierarchy
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


  • JPA Inheritance Strategies using annotations - Table per concrete class
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


  • JPA Inheritance Strategies using annotations - Table per sub class
  • In our previous articles we have seen, one to one, many to one and many to many mappings, in this article we will see how to map a inheritance class structures with JPA. There are three major strategies for doing this. 1) Table per hierarchy 2) Table per concrete class 3) Table per subclass


Like Us

Related Sections

JSP & Servlet

JSP & Servlet Tutorials, introduct...

Hibernate

Hibernate, Hibernate Tutorial for ...

Core Java

Core Java Tutorial, Arrays, Collect...

Java Interview

Top 100 Most important Java Intervi...

Programming

Java Programming Arrays, Class & Ob...

Spring Framework

Spring Framework, Sprinig IOC, CORE...

Java 8

Java 8 Tutorials, lambda expression...

Top Sections