#225 - Mapping - Add / review support for @IdClass

This commit is contained in:
Rob Bygrave committed 2018-03-15 18:19:17 +13:00
1 parent 602a35d0b6
commit 4799c56e25
34 files changed
+765 -309

No files matched your search

@@ -1350,7 +1350,7 @@ public class BeanDescriptorManager implements BeanDescriptorMap {
// already assigned (So custom or UUID)
return;
}
if (desc.propertiesId().isEmpty()) {
if (desc.idProperty() == null) {
// bean doesn't have an Id property
if (desc.isBaseTableType() && desc.getBeanFinder() == null) {
// expecting an id property
@@ -1491,6 +1491,9 @@ public class BeanDescriptorManager implements BeanDescriptorMap {
private boolean isPersistentField(DeployBeanProperty prop) {
Field field = prop.getField();
if (field == null) {
return false;
}
int modifiers = field.getModifiers();
return !(Modifier.isStatic(modifiers) || Modifier.isTransient(modifiers)) && !field.isAnnotationPresent(Transient.class);
}