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