jpa-2.0
Why is Hibernate selecting same columns 4 times? Help with Mapping?
My classes look like these. Why does the same column get selected 4 times? What is problem with the mapping?[详细]
2023-03-30 22:29 分类:问答JPA2 Entities Caching
As it stands I am using a JSF request scoped bean to do all my CRUD operations. As I\'m sure you most likely know Tomcat doesn\'t provide container managed persistence so in my CRUD request bean I am[详细]
2023-03-30 19:34 分类:问答Hibernate fetch join -> cannot fetch multiple bags
Problem is i have two bags in my entity which i would like to display in my jsf frontend (Spring in the back so no lazy loading). So i have to eagerly fetch them to display the information in a list l[详细]
2023-03-30 16:38 分类:问答JPA: unidirectional many-to-one and cascading delete
Say I have a unidirectional @ManyToOne relationship like the following: @Entity public class Parent implements Serializable {[详细]
2023-03-30 16:05 分类:问答How do I express this constraint with JPA?
I have a class that looks like this: public enum Scope { A, B, C... } @Entity public class User { ... Scope scope; // enum, see above[详细]
2023-03-30 09:49 分类:问答What is the significance of specifying a relationship as 'One to One' in JPA?
i created a class @Entity public class **Department** implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO)[详细]
2023-03-30 00:24 分类:问答CriteriaQuery "where" gets lost when "orderBy" is applied
I am learning how to use CriteriaQuery in JPA 2.0 and hit a snag.My application builds a query with interactive input from the user.When the column headers are clicked, an orderBy term is applied.When[详细]
2023-03-29 18:48 分类:问答Can't find entities in PersistenceContext after .persist()
I am writing a JavaEE Project and am trying to get some unit tests on the way. The unit testing framework we use is JUnit, alongside Maven and Hudson for building and CI.[详细]
2023-03-29 10:43 分类:问答EclipseLink refuses to map native query on PostgreSQL to entity
I have a JPA entity class (one of many) and I can run JPQL queries on it, returning that entity without any problem. However, when I attempt to run any named native query that selects all the fields o[详细]
2023-03-29 06:24 分类:问答JSF Form for an Entity -- Hot editing?
I am writing a JSF 2.0 form to edit a JPA @Entity object.I have a backing bean that has a get method for the Entity, which it fetches from the EntityManager.So far so good.[详细]
2023-03-29 04:45 分类:问答