mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1101 - findNative() on a bean with an associated @OneToOne (with the PK being derived from the parent) maps incorrectly
This commit is contained in:
@@ -713,7 +713,11 @@ public class BeanDescriptor<T> implements MetaBeanInfo, BeanType<T> {
|
||||
}
|
||||
|
||||
void registerColumn(String dbColumn, String path) {
|
||||
columnPath.put(dbColumn.toLowerCase(), path);
|
||||
String key = dbColumn.toLowerCase();
|
||||
// check for clash with imported OneToOne PK
|
||||
if (!columnPath.containsKey(key)) {
|
||||
columnPath.put(key, path);
|
||||
}
|
||||
}
|
||||
|
||||
void registerTable(String baseTable, BeanPropertyAssoc<?> assocProperty) {
|
||||
|
||||
Reference in New Issue
Block a user