Added duplicate property name check, just in case
This commit is contained in:
parent
29c3c4b22b
commit
0596f59304
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ public class EntityPropertyRegistryImpl implements EntityPropertyRegistry {
|
|||
}
|
||||
|
||||
private <T> void register(EntityPropertyImpl<?> property) {
|
||||
if (byName.containsKey(property.getName()))
|
||||
throw new IllegalArgumentException("Duplicate property name: " + property.getName());
|
||||
byName.put(property.getName(), property);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue