mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#225 - Mapping - Add / review support for @IdClass
This commit is contained in:
1 parent
602a35d0b6
commit
4799c56e25
34 files changed
+765
-309
No files matched your search
@@ -92,9 +92,9 @@ public class DeployTableJoinColumn {
|
||||
|
||||
private void setReferencedColumn(BeanTable beanTable) {
|
||||
if (localDbColumn == null) {
|
||||
BeanProperty[] idProperties = beanTable.getIdProperties();
|
||||
if (idProperties.length == 1) {
|
||||
localDbColumn = idProperties[0].getDbColumn();
|
||||
BeanProperty idProperty = beanTable.getIdProperty();
|
||||
if (idProperty != null) {
|
||||
localDbColumn = idProperty.getDbColumn();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user