play.db.jpa
类 JPABase
java.lang.Object
play.db.jpa.JPABase
- 所有已实现的接口:
- java.io.Serializable, Model
- 直接已知子类:
- GenericModel
@MappedSuperclass
public class JPABase
- extends java.lang.Object
- implements java.io.Serializable, Model
A super class for JPA entities
- 另请参见:
- 序列化表格
从类 java.lang.Object 继承的方法 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
willBeSaved
public transient boolean willBeSaved
JPABase
public JPABase()
getJPAContext
public JPAContext getJPAContext()
getJPAConfig
public static JPAConfig getJPAConfig(java.lang.Class clazz)
- Returns the correct JPAConfig used to manage this entity-class
_save
public void _save()
- 指定者:
- 接口
Model
中的 _save
_delete
public void _delete()
- 指定者:
- 接口
Model
中的 _delete
_key
public java.lang.Object _key()
- 指定者:
- 接口
Model
中的 _key
em
public EntityManager em()
- Retrieve the current entityManager
- 返回:
- the current entityManager
isPersistent
public boolean isPersistent()
equals
public boolean equals(java.lang.Object other)
- JPASupport instances a and b are equals if either a == b or a and b have same
key
and class
- 覆盖:
- 类
java.lang.Object
中的 equals
- 参数:
other
-
- 返回:
- true if equality condition above is verified
hashCode
public int hashCode()
- 覆盖:
- 类
java.lang.Object
中的 hashCode
toString
public java.lang.String toString()
- 覆盖:
- 类
java.lang.Object
中的 toString
getEntityId
@Deprecated
public java.lang.Object getEntityId()
- 已过时。
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly