MyJavaCode.com

Tutorial and How to Guide on Java Programming. Topics covered include Java Programming Language - Core Java, Spring, Webservices, REST, Hibernate, Maven and Microservices.

  • Core Java
  • REST API’s
  • Spring boot
  • Hibernate
  • Interview Questions
  • Contact Us
  • Projects
  • Offerings

How to Map Composite Key in Hibernate

January 30, 2025 By Prasanna Manjunatha

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

January 18, 2025 By Prasanna Manjunatha

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 […]

Currently Trending

  • What Are REST APIs? A Beginner’s Guide for Java Developers
  • How to Extract Private Key from Java Keystore (.JKS) or .P12 File
  • Externalizing MyBatis SQL Queries in a Spring Boot Application
  • How to Create Cron Expression for Quartz Scheduler
  • How to Update MySQL Collation for all tables in the schema
  • How to Solve Maven invalid CEN header error
  • How to check whether a Collection is Null or Empty in Java
  • Java Null Check Using Optional: Enhancing Code Reliability and Readability

Connect with us

  • Facebook
  • GitHub
  • LinkedIn
  • Twitter

TAG CLOUD

Axis2 Code Coverage CodeCoverage cron expression Data Structure Frameworks Hashing HashMap Hibernate IntelliJ java Java Mail jboss jpa 2.1 Maven MyBatis MySQL PDF Quartz REST REST API SOAP Springboot Spring boot SQL Tools Tutorial web service

All time Popular Posts

  • How to Extract Private Key from Java Keystore (.JKS) or .P12 File
  • How to check whether a Collection is Null or Empty in Java
  • How to Solve Maven invalid CEN header error
  • How to Deploy Exploded WAR file in JBoss EAP Server
  • How to configure JaCoCo for Code Coverage in Spring boot Applications
  • Automate Audit Fields in Spring Boot with MyBatis: A Generic Solution for CRUD Operations
  • Getting Started with Spring Boot: A Spring Boot Setup Tutorial
  • How to Generate MD5 Hash in Java
  • How to Check Free Disk Space in Java
  • How to Update MySQL Collation for all tables in the schema

Copyright © 2026 MyJavaCode.com