Home JPA

JPA

What is Dialect in Hibernate and List of Dialects

Dialect in Hibernate - Dialect is a class and a bridge between Java JDBC types and SQL types, which contains mapping between...

JPA AttributeConverter Examples

AttributeConverter introduced in JPA 2.1. This article demonstrates JPA AttributeConverter with an example.What is JPA ...

many-to-many bidirectional association

many-to-many bidirectional mapping :In a relational database in a many-to-many relationship, a row in table X can have...

Merge – Re attaching detached Entities

Merge the state of the given entity into the current persistence context. The merge method’s major task is to transfer the state from...

ORM (Object Relational Mapping) and its advantages

1. ORM – what is Object Relational Mapping?ORM or Object Relational Mapping is a system that implements the responsibility...

many-to-many unidirectional association

In a relational database in a many-to-many relationship, a row in table X can have  more than one matching row in table...

one-to-many bidirectional association

In a relational database in a one-to-many relationship, a row in table X can have  more than one matching row in table...

one-to-many unidirectional association

In a relational database in a one-to-many relationship, a row in table X can have  more than one matching row in table...

one-to-one bidirectional association

In a relational database in a one-to-one relationship, a row in table X can have no more than one matching row in...

one-to-one unidirectional association

In a relational database in a one-to-one relationship, a row in table X can have no more than one matching row in...

Key Points to understand Associations in JPA and Hibernate

Entity Role.Cascade.Fetch Type.Direction.mappedBy Attribute.Join Column.Join Tables.Inverse Join Column.1. Entity Role :In every association there are...

Save image – working with large objects (@LOB) in JPA with Hibernate

In this article you will see how to save image in database and how to work with LOB (Large objects), CLOB (Character...

@Transient annotation in Jpa or Hibernate – ignore persistent fields

What is the use of  @Transient annotation in JPA and [email protected] annotation in...

JPA + Mysql + Maven example setup in eclipse

Project Structure :Import downloaded project into eclipse. If you are new to maven follow Import existing maven project into...

How to import maven project into eclipse

Note:There are different types of maven projects to import into eclipse. In this Tutorial I am trying to explain about importing existing...

Stay in Touch