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