Mapping components in Hibernate using XML

In persistent units we often face a scenario where we think of grouping few similar properties and creating separate persistent entity for them would be expensive. For such situation creating embedded components for grouping such properties makes more sense. The life...

MongoDB for MySQL Developers : Part 1

MongoDB for MySQL/RDBMS Developers : Part 1 This is my for first post for “Mongodb for Mysql developers series”. I come from RDBMS background and these were things which were new to me: MySQL - MongoDB "Database" - "Database"...

Create simple JPA application.

We’ll be using maven for dependency management and H2 database. Let’s start by adding all the dependencies to the pom.xml. <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId>...