mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Can handle one to many & many to one relations in docstore only entities (#1158)
This commit is contained in:
committed by
Rob Bygrave
parent
1651d5e119
commit
bbe8abcc2e
@@ -1038,6 +1038,13 @@ public class BeanDescriptorManager implements BeanDescriptorMap {
|
||||
}
|
||||
|
||||
if (prop.getMappedBy() == null) {
|
||||
// if we are doc store only we are done
|
||||
// this allowes the use of @OneToMany in @DocStore - Entities
|
||||
if (info.getDescriptor().isDocStoreOnly()) {
|
||||
prop.setUnidirectional();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!findMappedBy(prop)) {
|
||||
makeUnidirectional(info, prop);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user