This article should teach you how can do you install and use the EclipseLink-JPA. The Integrated Development Environment that will be used in this installation guide is “Eclipse Java EE IDE for Web Developers- Kepler Service Release 1”. Install Eclipse IDE First of all you should install Eclipse IDE from Eclipse official site. Open the …
Java EE
JPA Annotations – @GeneratedValue, @SequenceGenerator and @TableGenerator
We’ve already discussed a different kind of primary keys, either simple or composite primary keys have assigned an inline values in the executable applications that were made. by looking into @Id, @IdClass or @EmbeddedId examples you could see that. But what if we would have some generator to generate these primary values. This tutorial explains the ID …
Servlet Life Cycle: Explanation
Servlets are small programs that run at server side and creates dynamic web pages. Servlets respond to requests sent by the user. In MVC architecture, servlets act as a controller. The controller processes and responds to user requests. The Servlet Life Cycle contains the following steps: Servlet Life Cycle: Class Loading The first step in …
javax.naming.NameNotFoundException: Name is not bound in this Context Exception
When you are working with the JNDI look up, quite often you would encounter the javax.naming.NameNotFoundException thrown by your application. JNDI names are registered in the registery, if you try to access the name which is not registered or by the wrong format, you would get the javax.naming.NameNotFoundException. Lets look at the below code for …
JPA – Java Persistence Query Language (JPQL) – PART II
This tutorial is a complement for Java Persistence Query Language (JPQL) Part I, in which a new techniques of querying should be discovered and learned. Instead of depending on the entities that being retreived upon query for accessing their inner state/association fields, we’ve also would be querying those fields through an advanced techniques of query. …
Java EE 8 Survey and Features
Oracle calls the enterprise community for a third and final survey on Java EE 8. The closing date for the survey will be March 24, 2014 at 12 AM Pacific Time. It is only the attempt by Oracle to gather the information from community to get an idea of what is the most demanded features. However, there is …
JPA – Java Persistence Query Language (JPQL) – PART I
Java Persistence Query Language (JPQL) is a string-based query language used to define queries over entities and their persistent states. It enables the application developer to specify the semantics of queries in a portable way and independent of the particular database schema that in use. Java Persistence Query Language (JPQL) is not only portable but …
JPA – Lazy Loading and Eager Loading
Eclipselink 2.1 is a persistence provider runtime of the Java Persistence API 2.1 specification. JPA specification defines two major strategies of loading data (Lazy and Eager). The EAGER strategy is a requirement on the persistence provider runtime that data must be eagerly fetched. The LAZY strategy is a hint to the persistence provider runtime that …