jpa-2.0
Hibernate/JPA persistence.xml leads to SAXParseException when deploying to Jetty as WAR
I\'m having trouble getting an application running on Jetty. If I run the app using the maven jetty plugin i.e.[详细]
2023-04-08 06:10 分类:问答JPQL and clausole IN, not found
i have the following situation: In the dao class: ... Query q = em.createNamedQuery(\"myQuery\"); q.setPa开发者_如何学运维rameter(\"attr\", \"value\");[详细]
2023-04-08 03:42 分类:问答data missing, but not the record...weird
Tomcat/Struts2/JPA2(EclipseLink)/MySql I have several differen开发者_StackOverflow中文版t entities that are exhibiting an intermittent problem and I am puzzled.[详细]
2023-04-07 12:37 分类:问答Entity relationships design with JPA2
I have two entities, User and UserSetting. The obvious relationship between these two has User as the first rate entity which contains a set / list of UserSettings so when a User is loaded the setting[详细]
2023-04-07 03:39 分类:问答Cascade insert with JPA/Hibernate (EclipseLink)
I have two tables like this PERSON||EMPLOYEE| |id|fullName|| personId | code | EMPLOYEE.personId is a primary key as well as foreign key pointing to PERSON.id[详细]
2023-04-07 01:50 分类:问答Merging JPA entity returns old values
I have 2 JPA entities that have a bidirectional relationship between them. @Entity public class A { @ManyToOne(cascade={CascadeType.PERSIST, CascadeType.MERGE})[详细]
2023-04-06 23:34 分类:问答JPQL distinct with string function
I have a JPQL like this one: select distinct d from Depart开发者_如何学运维ment d left join fetch d.employees[详细]
2023-04-06 04:08 分类:问答Are you able to prove the Hibernate Lazy-Loading?
I just want to ask, how to prove that hibernate is doing lazy loading . I have code like this : And I try to test lazy loading in hibernate (jpa) with this code :[详细]
2023-04-06 01:46 分类:问答Hibernate: How configure EntityManager in Hibernate?
I create a hibernate project with \'hibernate tools\'provide by JBoss to Eclipse. Generated the Entities (POJO\'s) and then the DAO\'s.[详细]
2023-04-06 01:14 分类:问答How do I make my entity object managed so I can remove it?
This doesn\'t work -- I always get the IllegalArgumentException thrown with the advice to \"try merging the detached and try the remove again.\"[详细]
2023-04-05 22:56 分类:问答