public class Entity extends ManagedClass
class Person {
private int personId;
private String firstName;
private String lastName;
...
}
| Constructor and Description |
|---|
Entity(java.lang.Class sourceClass,
java.util.List<Property> properties,
Property idProperty) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getIdOf(java.lang.Object instance) |
Property |
getIdProperty() |
int |
hashCode() |
getName, getProperties, getProperties, getProperty, getSimpleName, getSourceClass, hasProperty, isInstancepublic java.lang.Object getIdOf(java.lang.Object instance)
instance - instance of ManagedClass.getSourceClass()JaversException - ENTITY_INSTANCE_WITH_NULL_IDJaversException - NOT_INSTANCE_OFpublic Property getIdProperty()
public boolean equals(java.lang.Object o)
equals in class ManagedClasspublic int hashCode()
hashCode in class ManagedClass