@MappedSuperclass public class JPABase extends java.lang.Object implements java.io.Serializable, Model
| Modifier and Type | Class and Description |
|---|---|
static class |
JPABase.JPAQueryException |
Model.BinaryField, Model.Choices, Model.Factory, Model.Manager, Model.Property| Modifier and Type | Field and Description |
|---|---|
boolean |
willBeSaved |
| Constructor and Description |
|---|
JPABase() |
| Modifier and Type | Method and Description |
|---|---|
void |
_delete() |
java.lang.Object |
_key() |
void |
_save() |
static javax.persistence.EntityManager |
em() |
static javax.persistence.EntityManager |
em(java.lang.String name)
Retrieve the current entityManager
|
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 |
getEntityId()
Deprecated.
|
int |
hashCode() |
boolean |
isPersistent() |
boolean |
isPersistent(java.lang.String name) |
java.lang.String |
toString() |
public static javax.persistence.EntityManager em(java.lang.String name)
name - The DB namepublic static javax.persistence.EntityManager em()
public boolean isPersistent(java.lang.String name)
public boolean isPersistent()
public boolean equals(java.lang.Object other)
key and classequals in class java.lang.Objectother - The object to compare topublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@Deprecated public java.lang.Object getEntityId()
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly