JPA one to one mapping with annotation (Java persistence API)

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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.

Read more

JPA one to many mapping with annotation (Java persistence API)

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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.

Read more

JPA many to many mapping with annotation (Java persistence API)

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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.

Read more

JPA Inheritance Strategies using annotations - Table per hierarchy

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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

Read more

JPA Inheritance Strategies using annotations - Table per concrete class

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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

Read more

JPA Inheritance Strategies using annotations - Table per sub class

  • Oct 1, 2015
  • 0
  • Java Persistence API (JPA) Tutorials

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

Read more

Like Us

Related Sections

Core Java

Core Java Tutorial, Arrays, Collect...

Programming

Java Programming Arrays, Class & Ob...

Spring Framework

Spring Framework, Sprinig IOC, CORE...

Top Sections