I am getting this error and I have no idea the reason: Class "Department" is mapped, but is not included in any persistence unit.
I have two project. One is In my persistence.xml, between tag, there is only two lines:
<persistence-unit name="UserJPA">
</persistence-unit>
My class is:
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;
//getters and setters
}
I am using EclipseLink2.1.2. Actually I can remove this if it makes the things easier.
Hugs, Demetrio