DATACMNS-342 - Open up id property selection API in BasicPersistentEntity.
To support more advanced id property selection mechanisms we introduced a callback method returnPropertyIfBetterIdPropertyCandidate(…).
Pull request: #30.
pull/32/head
Thomas Darimont13 years agocommitted byOliver Gierke
@ -166,15 +167,10 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
@@ -166,15 +167,10 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
"Attempt to add id property %s but already have property %s registered "
+"as id. Check your mapping configuration!",property.getField(),idProperty.getField()));
}
this.idProperty=property;
if(idProperty!=null){
this.idProperty=idProperty;
}
if(property.isVersionProperty()){
@ -189,6 +185,26 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
@@ -189,6 +185,26 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement