Java By Developer

19 Added | 1 Magazine | @JavaByDeveloper | http://javabydeveloper.com provide Tutorials on java, Spring,Hibernate,JPA,SOAP,REST,TestNG,Selenium and many more......

Generic Classes

Generic class in general – A class that can refer to any type is known as generic class.<p><b>To understand Generic classes, lets have a look on generic</b> …

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 Y, a row in table Y can have …

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 Y.<p>In Object oriented …

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 Y.<p>In Object oriented …

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 table Y, and vice versa. X …

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 table Y, and vice versa. X …

Key Points to understand Associations in JPA and Hibernate

• Entity Role.<br>• Cascade.<br>• Fetch Type.<br>• Direction.<br>• mappedBy Attribute.<br>• Join Column.<br>• Join Tables.<br>• Inverse Join Column.<p><b>1. Entity Role :</b><p>In every association there …

Save image - working with large objects in JPA with Hibernate

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

@Transient -How to annotate non persistent fields

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

Why Java Persistence API(JPA)?

<b>Vendor Lock-In :</b><p><b>Vendor Lock-In</b> is one of the major reason to choose JPA in Java enterprise application development.<br>• Today, There are several good …

Mapping Composite Value Types - JPA with Hibernate

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

Hibernate Entity Types vs Value Types

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

Remove an Entity from Database using JPA with Hibernate

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

Updating an Entity to the Database using JPA with Hibernate

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

Retrieving or finding an Entity using JPA

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.</b> …

How to persist an Entity in Database using JPA?

<b>Note:</b><br>Maven dependencies used all over JPA tutorials same. Please follow "Setting up Project" section to understand about project configuration.<p>Table …

JPA Basic Terminology to Understand JPA Architecture

Entity:<p>An entity is a persistence domain object. Entity represents a table in a relational database, and each entity instance corresponds to a row in …

JPA Entity lifecycle - JPA developer should know

Entity Instance states :<p>JPA defines four states and state transitions for the persistence life cycle.<br>• Below image illustrates these states and …

What is Java Persistence API ?

• JPA is a specification for accessing, persisting and managing data between Java Objects and Relational Database.<p>Technically JPA is just set of …