Fix for #223 - RawSql that includes a OneToMany not working

This commit is contained in:
rbygrave
2014-12-17 23:05:53 +13:00
parent c0810a375e
commit b6a0653a3c
4 changed files with 70 additions and 1 deletions
@@ -225,6 +225,10 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
return createElPropertyValue(propName, remainder, chain, propertyDeploy);
}
public void buildSelectExpressionChain(String prefix, List<String> selectChain) {
// do not add to the selectChain at the top level of the Many bean
}
public SqlUpdate deleteByParentId(Object parentId, List<Object> parentIdist) {
if (parentId != null) {
return deleteByParentId(parentId);
@@ -287,7 +287,6 @@ public class BeanPropertyAssocOne<T> extends BeanPropertyAssoc<T> {
}
}
/**
* Return true if this a OneToOne property. Otherwise assumed ManyToOne.
*/
@@ -80,6 +80,9 @@ public class SqlTree {
this.includes = null;
}
/**
* Build a select expression chain for RawSql.
*/
public List<String> buildSelectExpressionChain() {
ArrayList<String> list = new ArrayList<String>();
rootNode.buildSelectExpressionChain(list);