List/Grid Tag Archives: JPA

Guice AOP and the Java Persistence API
The Java Persistence API provides a programming language framework for managing relational data through entity management and ORM APIs. Libraries like Hibernate and Guice Persist implement ...

Schema Creation Script With Hibernate 4, JPA And Maven
The scenario is trivial – you want to generate a database schema creation script while building your application (and then execute the script on the target database) This was relatively ...

EasyCriteria – An easy way to use the JPA Criteria
Today we will see about this tool that make easier to use the JPA Criteria. The application that uses this library will be cleaner, easier to use and portable across the JPA implementations. ...

Ultimate JPA Queries and Tips List – Part 3
Before you read the third part , remember the first and second part of the series JPA: Creating a object from a query The JPA allow us to create objects inside a query, just with the ...

Ultimate JPA Queries and Tips List – Part 2
This part continues from the first part of the series. JPA: NamedQuery, querying with dates, warnings about the getSingleResult method To avoid the repetition of queries codes, upgrade ...

Ultimate JPA Queries and Tips List – Part 1
There are several JPAs “how to” that we can find on the internet, here in this blog, that teaches how to do several tasks with JPA. Usually I see some people asking questions about ...

Four solutions to the LazyInitializationException – Part 2
This article continues from part 1 of the tutorial. Load collection by Stateful EJB with PersistenceContextType.EXTENDED This approach can be applied only to applications that works ...

Four solutions to the LazyInitializationException – Part 1
In the post today we will talk about the common LazyInitializationException error. We will see four ways to avoid this error, the advantage and disadvantage of each approach and in ...

Test JPQL / HQL without a deploy
Have you ever wanted to test your JPQL / HQL without doing a full deploy of your application? What we will see here today is simple solution that works for any JPA implementation: Hibernate, ...

Full Web Application Tomcat JSF Primefaces JPA Hibernate – Part 3
Primefaces AutoComplete, JSF Converter This post continues from part 1 and part 2. The JSF has the Converter tool that helps us get some data from the user view and transform into an ...


