I get this error, and I have no idea why: the Department class is displayed, but not included in any storage unit.
I have two projects. One of them In my persistence.xml, there are only two lines between the tag:
<persistence-unit name="UserJPA"> </persistence-unit>
My class:
package br.com.jm.user; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.Column; import javax.persistence.Id; import javax.persistence.Table;; @Entity @Table(name = "DEPARTMENT") public class Department implements Serializable { private static final long serialVersionUID = 1L; @Id private Long id; private String name;
I am using EclipseLink2.1.2. In fact, I can remove this if it simplifies the situation.
Hugs, Demetrio
java jpa eclipselink
Demetrio
source share