Top "Jpa" questions

The Java Persistence API (JPA) is a Java specification for accessing, persisting, and managing data between Java objects/classes and a relational database.

JPA: JOIN in JPQL

I thought I know how to use JOIN in JPQL but apparently not. Can anyone help me? select b.fname, …

java jpa eclipselink jpql
JPQL SELECT between date statement

I would like to convert this SQL statement to a JPQL equivalent. SELECT * FROM events WHERE events_date BETWEEN '2011…

java sql jpa jpql
What is “the inverse side of the association” in a bidirectional JPA OneToMany/ManyToOne association?

In the example section of the @OneToMany JPA annotation reference: Example 1-59 @OneToMany - Customer Class With Generics @Entity public …

java hibernate jpa one-to-many mappedby
Mapping many-to-many association table with extra column(s)

My database contains 3 tables: User and Service entities have many-to-many relationship and are joined with the SERVICE_USER table as …

hibernate jpa mapping many-to-many jointable
No converter found capable of converting from type to type

I am getting the following stacktrace: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [referencedata.…

spring jpa spring-data-jpa converter
JPA or JDBC, how are they different?

I am learning Java EE and I downloaded the eclipse with glassfish for the same. I saw some examples and …

java jpa jdbc
How does the JPA @SequenceGenerator annotation work

I am learning JPA and have confusion in the @SequenceGenerator annotation. To my understanding, it automatically assigns a value to …

java hibernate jpa sequence sequence-generators
Hibernate Annotations - Which is better, field or property access?

This question is somewhat related to Hibernate Annotation Placement Question. But I want to know which is better? Access via …

java hibernate orm jpa annotations
What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?

What is the difference between Unidirectional and Bidirectional associations? Since the table generated in the db are all the same,…

java hibernate jpa orm associations
How to define unidirectional OneToMany relationship in JPA

I have a following problem with entity mapping in JPA. I have two entities, first one is Lookup and the …

java jpa jpa-2.0