Composite key (or Composite Primary Key) cannot be mapped directly in hibernate like how we map the normal primary key’s using @Id annotation attribute. We will have to use @Embedabble & @EmbeddedId annotation attributes to map composite key. JaCoCo Code Coverage in Springboot Applications : A Comprehensive Guide How to Password Protect a PDF File […]
How to Use JPA 2.1 in JBoss EAP 6.x
JBoss EAP 6.x is based on JEE 6. But as JPA 2.1 is part of the JEE 7 Spec, it will not be possible to directly deploy applications built using JPA 2.1 in JBoss EAP 6.x. However, with the following workaround we can make this possible. You need to include a ‘jboss-deployment-structure.xml’ with the following […]