Understanding EclipseLink, 2.4
  Go To Table Of Contents

Identifying Entities

Use the @Entity annotation to specify that a class is an entity.


The entity class must also be listed in your persistence.xml file, unless you set the tag <exclude-unlisted-classes> to false. An entity can also be defined using an orm.xml file and the <entity> tag.

For more information, see Chapter 2 "Entities" in the JPA Specification.