JPA - Managed Class

Card Puncher Data Processing



A managed class will be included if it is one of the following:

  • Local classes:
    • Local means that the classes are in the deployment unit where the persistence.xml file is packaged.
    • the classes must be annotated with the @Entity annotations
  • Classes in mapping files
  • Explicitly listed classes: the classes are listed as class elements in the persistence.xml file.

A managed class will be excluded if:

  • it's listed in the exclude-unlisted-classes element of the persistence.xml.

Why ? In a certain context, you may want to exclude an entity in order to use it as a transfer object but not as entity.

Discover More
Card Puncher Data Processing
JPA - Entity (Managed Classes)

xmlparserv2.jar Introduction to EclipseLink JPA (ELUG) for more information on the annotation.
Card Puncher Data Processing
JPA - Java Persistence API (JPA)

API The Java Persistence API is the Java API for the management of persistence and object/relational mapping for: Java EE and Java SE environments The Java Persistence consists of: The Java...
Card Puncher Data Processing
JPA - Persistence Unit

the node provider property See chapter 8.1 of the specification

Share this page:
Follow us:
Task Runner