You can make a Java class into one of the following persistent types:
Persistent entity
Embeddable
Mapped superclass
You can also add persistence when creating a new Java class. See "Creating a new Java persistent entity" for more information.