Top "Jpa-2.0" questions

This tag is for questions about the version 2.0 of the Java Persistence API.

How can I validate two or more fields in combination?

I'm using JPA 2.0/Hibernate validation to validate my models. I now have a situation where the combination of two fields …

java jpa jpa-2.0 bean-validation
Compare Date entities in JPA Criteria API

Using JPA 2 with EclipseLink implementation. I'm trying to build a dynamic query which should bring me some records persisted after …

java date jpa-2.0 criteria-api
Generate JPA 2 Entities from existing Database

How can I generate JPA2 compliant @Entity from existing Databases?. I found this: Question Still its not clear if JBoss …

java code-generation persistence entity jpa-2.0
How do I write a MAX query with a where clause in JPA 2.0?

I'm using JPA 2.0. Hibernate 4.1.0.Final, and Java 6. How do I write a JPA query from the following psuedo-SQL? select max(…

hibernate jpa jpa-2.0 max criteria
Hibernate JPA, MySQL and TinyInt(1) for Boolean instead of bit or char

Here is my JPA2 / Hibernate definition: Code: @Column(nullable = false) private boolean enabled; In MySql this column is resolved to …

java mysql hibernate jpa jpa-2.0
JPA Criteria Tutorial

I've been trying to find a JPA Criteria API tutorial but haven't been much successful. Do you know about any …

java jpa annotations jpa-2.0
JPA/Criteria API - Like & equal problem

I'm trying to use Criteria API in my new project: public List<Employee> findEmps(String name) { CriteriaBuilder cb = …

java jpa jpa-2.0 criteria-api
selecting all rows from a database using JPA in WebSphere

I am trying to implement a web service that uses open JPA to access the data layer. I am using …

websphere jpa-2.0 openjpa
Really dynamic JPA CriteriaBuilder

I need to create a "real" dynamic JPA CriteriaBuilder. I get an Map<String, String> with the statements. …

java jpa jpa-2.0 criteria-api
How do I properly cascade save a one-to-one, bidirectional relationship on primary key in Hibernate 3.6

I have an one-to-one, bidirectional entity relationship with shared keys. When I attempt to save the owner of the association …

java hibernate orm jpa jpa-2.0