play.db.jpa
Class Model

java.lang.Object
  extended by play.db.jpa.JPASupport
      extended by play.db.jpa.Model
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JPAModel

public class Model
extends JPASupport

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.JPASupport
JPASupport.JPAQuery, JPASupport.JPAQueryException
 
Field Summary
 java.lang.Long id
           
 
Fields inherited from class play.db.jpa.JPASupport
willBeSaved
 
Constructor Summary
Model()
           
 
Method Summary
 java.lang.Long getId()
           
 
Methods inherited from class play.db.jpa.JPASupport
afterLoad, afterSave, all, count, count, create, create, delete, delete, deleteAll, edit, edit, em, equals, find, find, findAll, findBy, findById, findKey, findKeyType, findOneBy, getEntityId, getEntityManager, hashCode, merge, refresh, save, saveAttachment, setupAttachment, toString, validateAndSave
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public java.lang.Long id
Constructor Detail

Model

public Model()
Method Detail

getId

public java.lang.Long getId()


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly