Package play.db.jpa
Class Model
- java.lang.Object
-
- play.db.jpa.JPABase
-
- play.db.jpa.GenericModel
-
- play.db.jpa.Model
-
- All Implemented Interfaces:
java.io.Serializable
,Model
@MappedSuperclass public class Model extends GenericModel
Base class for JPA model objects Automatically provide a @Id Long id field- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class play.db.jpa.GenericModel
GenericModel.JPAQuery
-
Nested classes/interfaces inherited from class play.db.jpa.JPABase
JPABase.JPAQueryException
-
Nested classes/interfaces inherited from interface play.db.Model
Model.BinaryField, Model.Choices, Model.Factory, Model.Manager, Model.Property
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Long
id
-
Fields inherited from class play.db.jpa.JPABase
willBeSaved
-
-
Constructor Summary
Constructors Constructor Description Model()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
_key()
java.lang.Long
getId()
-
Methods inherited from class play.db.jpa.GenericModel
_saveAttachment, _setupAttachment, all, count, count, create, create, create, create, delete, delete, deleteAll, edit, edit, edit, edit, edit, edit, find, findAll, findById, merge, refresh, save, validateAndCreate, validateAndSave
-
Methods inherited from class play.db.jpa.JPABase
_delete, _save, em, em, equals, getEntityId, hashCode, isPersistent, isPersistent, toString
-
-