My classes look like these. Why does the same column get selected 4 times? What is problem with the mapping?
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
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
Say I have a unidirectional @ManyToOne relationship like the following: @Entity public class Parent implements Serializable {
I have a class that looks like this: public enum Scope { A, B, C... } @Entity public class User { ... Scope scope; // enum, see above
i created a class @Entity public class **Department** implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO)
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
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.
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
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.