mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
This commit is contained in:
@@ -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