JPA has 2 levels of caching. The first level of caching is the persistence context.
The JPA Entity Manager maintains a set of Managed Entities in the...
2 replies - 4863 views - 08/24/09 by carol mcdonald in Articles
Doesn't it annoy you when you have to add each class individually to
the Spring config when you are dealing with annotated classes? I bet it
annoys you even...
11 replies - 4393 views - 08/21/09 by chrislhardin in Articles
Anybody that has been working with Hibernate for a while has probably seen a LazyInitializationException or two, usually followed by a message such as...
9 replies - 4651 views - 08/19/09 by vpartington in Articles
JPA offers the @OneToMany, @ManyToOne, @OneToOne, and @ManyToMany annotations to map associations between objects.
1 replies - 3615 views - 08/13/09 by vpartington in Articles
This Pet Catalog app explains a web application that
uses JSF 2.0, Java EE 6, GlassFish and MySQL. I took this
example GlassFish
and MySQL, Part 2: Building...
2 replies - 3441 views - 08/12/09 by carol mcdonald in Articles
In this blog I will explore why we would even need such patterns and put these patterns and the DAO pattern into the broader context of JPA application...
2 replies - 4647 views - 08/07/09 by vpartington in Articles
Just like retrieving an entity, removing an entity is pretty simple. In fact it's all you need to do is pass the entity to the EntityManager.remove
method to...
3 replies - 2980 views - 08/05/09 by vpartington in Articles
Optimistic locking lets concurrent transactions process simultaneously,
but detects and prevent collisions, this works best for applications
where most...
1 replies - 4408 views - 08/03/09 by carol mcdonald in Articles
This Pet Catalog app explains a web application that
uses JSF 2.0, JPA, GlassFish and MySQL. I took this example GlassFish
and MySQL, Part 2: Building a...
2 replies - 6080 views - 07/31/09 by carol mcdonald in Articles
For a long time I have been doing DAO's in my applications.I have usually used the model of having one DAO per type persisted, or per database table. You know,...
23 replies - 6388 views - 07/30/09 by Jakob Jenkov in News
Last time I talked about how to save an entity. And once we've saved an entity we'd also like to retrieve it. Compared to saving entities, retrieving entities...
1 replies - 3936 views - 07/29/09 by vpartington in Articles
We kicked off our hunt for JPA implementation patterns with the Data Access Object pattern and continued with the discussion of how to manage bidirectional...
4 replies - 6271 views - 07/24/09 by vpartington in Articles
The JPA, short for Java Persistence API, is part of the Java EE 5 specification and has been implemented by Hibernate, TopLink, EclipseLink, OpenJPA, and a...
19 replies - 8990 views - 07/22/09 by vpartington in Articles
Hibernate is a powerful, high performance object/relational persistence and query service. Hibernate lets you develop persistent classes following...
7 replies - 15056 views - 06/10/09 by sendon1982 in Articles
It took me some time to collect the hibernate.cfg.xml data which is necessary for Derby, Oracle and H2. So here are the default settings for those...
6 replies - 4561 views - 06/10/09 by Peter Karich in Tips and Tricks