EclipseLink – javax.persistence.PersistenceException : No Persistence provider for EntityManager

eclipse-thumbnail

This post provides possible exception while doing the JPA programming and the suggested solution for resolving the exception.┬áThis post will solve the issue that can be happened while the JPA implementation trying to get a persistence provider. The exception explained in this post thrown when you have not configured properly the persistence unit name in […]

EclipseLink – Configuration error. Class [com.mysql.jdbc.Driver] not found [javax.persistence.PersistenceException]

eclipse-thumbnail

The EclipseLink – JPA API is persistence service that provided a standard way to communicate with the database. The major important issue needs to take care of while development of a project using a JPA, is a database driver that can help the JPA communicates with the suggested database. This post will cover a proper […]

Spring Roo and JPA Entities

spring-thumbnail

This article is based on Spring Roo in Action, to be published Summer-2011. It is being reproduced here by permission from Manning Publications. Manning publishes MEAP (Manning Early Access Program,) eBooks and pBooks. MEAPs are sold exclusively through Manning.com. All pBook purchases include free PDF, mobi and epub. When mobile formats become available all customers […]

Struts 2.0 and JPA Integration

struts2-thumbnail

Struts 2.0 is the popular Open Source Presentation Tier framework developed by Apache Group. It is based on MVC Model 2 design pattern. Dispatcher Filter is the front controller for the struts2 based applications. Struts 2.0 has simplified web development for its users by introducing POJO based actions, interceptors, flexible validation and support for many […]

Create applications using ObjectDb and JPA in NetBeans

hibernate-thumbnail

Introduction I have been developing Java applications for a long time and the major difficulty was the coding part related to database manipulations. Recently I shifted to use Object-Relational Mapping through JPA. I have used TopLink, EclipseLink, and Hibernate. Although I could achieve the functionally I want with ease, the output was slower when compared […]

Integrating JSF and JPA

JSF-Thumbnail

Introduction MVC architecture has become the default choice for developing web applications. It has become a tradition to develop web applications using multi-tier architecture and hence involving one or more Frameworks. A Framework ensures faster development cycle and guarantees the usage of proven design patterns and architecture. There are various Frameworks available for each layer; […]

JPA and NetBeans

1

In this article we will see how to use Java Persistence API (JPA) in NetBeans 6.1 with in a Java application. The JPA was first introduced as part of the Java EE 5 platform. This article will not provide any of the theoretical information about JPA. Software used NetBeans IDE 6.1 JDK version 5.0/6.0 MySql […]

Sample Application for Java Persistence API (JPA)

java-ee-thumbnail

This article is the last part of the article series Java Persistence API (JPA), the earlier articles are introduction to JPA and the query api in JPA. This article is only for explaining the sample program with concepts used in the previous articles. I would recommend reading the previous two articles before start analyzing this […]

The Query API in JPA (EJB 3.0)

java-ee-thumbnail

Introduction One of the disadvantage of locating the entity objects using the EntityManager.find() and EntityManager.getReference() methods is, we cannot specify any powerful search criteria for searching the entity objects. All we can provide is the primary key to request for a particular object. Another fact is the class name of entity must be known. The […]

Introduction to Java Persistence API(JPA)

java-ee-thumbnail

Introduction Java Persistence API (JPA) provides POJO (Plain Old Java Object) standard and object relational mapping (OR mapping) for data persistence among applications. Persistence, which deals with storing and retrieving of application data, can now be programmed with Java Persistence API starting from EJB 3.0 as a result of JSR 220. This API has borrowed […]