foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, targetObject, getSession()); } else if (second.isObjectExpression() || second.isParameterExpression()) { foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, second, getSession()); } else { throw QueryException.invalidUseOfToManyQueryKeyInExpression(this); Object value = ((ConstantExpression)second).getValue(); Expression keyExpression = first.getDescriptor().getObjectBuilder().buildPrimaryKeyExpressionFromObject(value, getSession());
foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, targetObject, getSession()); } else if (second.isObjectExpression() || second.isParameterExpression()) { foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, second, getSession()); } else { throw QueryException.invalidUseOfToManyQueryKeyInExpression(this); Object value = ((ConstantExpression)second).getValue(); Expression keyExpression = first.getDescriptor().getObjectBuilder().buildPrimaryKeyExpressionFromObject(value, getSession());
foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, targetObject, getSession()); } else if (this.secondChild.isObjectExpression() || this.secondChild.isParameterExpression()) { foreignKeyJoin = first.getMapping().buildObjectJoinExpression(first, this.secondChild, getSession()); } else { throw QueryException.invalidUseOfToManyQueryKeyInExpression(this); first.getDescriptor().getObjectBuilder().buildPrimaryKeyExpressionFromObject(((ConstantExpression)this.secondChild).getValue(), getSession());
mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true; mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true;
mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true; mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true;
mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true; mapping.writeFromAttributeIntoRow(value, primaryKeyRow, getSession()); return true;