jpa-2.0
i added jpa2 jar file to library, but still can't find getCriteriaBuilder method
i am using hibernate jpa, i can use jpql query successfully but i can\'t use criteria api. i have read JPA Criteria API missing and jar file for JPA 2.0, i added hibernate-jpa-2.0-api-1.0.1.Final file[详细]
2023-04-05 19:50 分类:问答JPA Serialization
I\'m working with JPA 2.0-EclipseLink-Hibernate 3 on MySQL 5. My classes structure is like below (I simplified it)[详细]
2023-04-05 19:07 分类:问答Does JPA have something like hibernates '@GenericGenerator' for generating custom ids?
I\'m trying to create a custom way of computing and passing unique id\'s that follow my own pattern. Hibernate has the @GenericGenerator annotation that lets you map a custom class for computing a un[详细]
2023-04-05 11:49 分类:问答building a criteria query with jpa 2.0 by using a dynamic list
I\'m a bit confused while creating a criteriaQuery with JPA 2.0. Prerequisites: I have a Gui, where the user can mark some checkboxes of (let us say) wheatherstations with some options like temperatu[详细]
2023-04-04 23:54 分类:问答How do I catch the constraint violation exception from EclipseLink?
I am using EclipseLink in my web application, and I am having a hard time gracefully catching and handling Exceptions it generates.I see from this thread what seems to be a similar problem, but I don\[详细]
2023-04-04 16:49 分类:问答How do injection with JPA?
Is possible do injection in EntityManager with EclipseLink 2.3 ? This is my persistence.xml file: <?xml version=\"1.0\" encoding=\"UTF-8\"?>[详细]
2023-04-04 04:49 分类:问答JPA 2 - How to cache/optimize count queries?
I have Java EE application, where I have list of groups. I want to display number of items in every group, so I do:[详细]
2023-04-03 16:41 分类:问答Spring Roo + Hibernate: uppercase database name in the query
I\'ve reverse engineered a sample MySQL database with Spring Roo, and I\'m trying to insert a record using the Customer entity in this way:[详细]
2023-04-02 20:56 分类:问答JPA 2 implementations benchmark comparison
Is there any benchmark comparison of JPA 2 implementations? I need comparison from several aspects: simple entity ope开发者_如何学编程rations, collections, etc.This one might help:[详细]
2023-04-02 13:42 分类:问答How to merge a @OneToMany relationship effectively?
For example I have the following two entity classes with a one-to-many relationship: public class A implements Serializable {[详细]
2023-04-02 02:36 分类:问答