Chapter 9 Generating Persistent Objects for Java and JSF Pages
There are three kinds of persistent classes in EJB 3:
The following requirements apply to persistent classes:
They must be defined as persistent classes (see "Class Transformation" in the O/R Mapping Modeling chapter).
They must be top level classes (and not inner classes).
Entity classes and Mapped superclasses should carry the EJBEntity stereotype.
Embeddable classes are Value type classes, i.e. persistent classes with a Value type persistent type.
Classes that do not meet these requirements will be ignored.
Tip: You can set the stereotype and persistence of all the classes in a model or package (and sub-packages) by right-clicking the model or package and selecting Add Persistent from the contextual menu.
Copyright (C) 2006. Sybase Inc. All rights reserved. |
![]() |