-
hibernate
Persist object with Hibernate
This is an example of how to persist an object with Hibernate. To persist an object with Hibernate we have…
Read More » -
Web Services
Expose EJB as a Web Service
With this example we are going to demonstrate how to expose an EJB as a web service. Enterprise beans are…
Read More » -
Injection
Reference EJB in another EJB of the same application
In this example we shall show you how to get a reference of an EJB in another EJB of the…
Read More » -
Stateful Session Bean
Stateful Session Bean to persist Entity
In this example we shall show you how to use a Stateful Session Bean to persist an Entity. In a…
Read More » -
Stateless Session Bean
Stateless Session Bean to persist Entity
This is an example of how to create a Stateless Session Bean to persist an Entity. A stateless session bean…
Read More » -
jpa
Embedded compound primary key in JPA
With this example we are going to demonstrate how to create an embedded compound primary key in JPA. The Java…
Read More » -
jpa
Single table inheritance in JPA
In this example we shall show you how to create a single table inheritance in JPA. The Java Persistence API…
Read More » -
jpa
One To Many unidirectional mapping in JPA
This is an example of how to use One to Many unidirectional mapping in JPA. The Java Persistence API provides…
Read More » -
jpa
Delete with condition in JPA
With this example we are going to demonstrate how to delete with a condition in JPA. The Java Persistence API…
Read More » -
jpa
Set column name and length
In this example we shall show you how to set the column name and length in an entity field in…
Read More »