mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 14:46:25 +00:00
This commit is contained in:
1 parent
335c4de109
commit
63def00626
3 files changed
+83
-1
No files matched your search
@@ -181,6 +181,8 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> {
|
||||
chain = new ElPropertyChainBuilder(true, propName);
|
||||
}
|
||||
chain.add(this);
|
||||
chain.setEmbedded(true);
|
||||
|
||||
return chain.add(embProp).build();
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ElPropertyChainBuilder {
|
||||
|
||||
private final List<ElPropertyValue> chain = new ArrayList<>();
|
||||
|
||||
private final boolean embedded;
|
||||
private boolean embedded;
|
||||
|
||||
private boolean containsMany;
|
||||
|
||||
@@ -61,4 +61,11 @@ public class ElPropertyChainBuilder {
|
||||
return new ElPropertyChain(containsMany, embedded, expression, chain.toArray(new ElPropertyValue[chain.size()]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Permits to set whole chain as embedded when the leaf is embedded
|
||||
* @param embedded
|
||||
*/
|
||||
public void setEmbedded(boolean embedded) {
|
||||
this.embedded = embedded;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user