Rod Macpherson
2002-12-09 00:33:04 UTC
Two non-useful scripts that serve to highlight a bug related to TargetMany predicate:
The inner comment contains the class name of the entity bean associated with the table it should:
#foreach($role in $table.relationshipRoles)
#if($role.targetMany)
// $table.getClassName($role)
#end
#end
This inner comment contains the class java.util.Collections but the output should be identical to above
#foreach($role in $table.manyRelationshipRoles)
// $table.getClassName($role)
#end
The good news is this is not in the released product and results only when getting relations using the TargetMany predicate to filter relations. I would have thought the predicate and the explicit test would produce the same results but this is the second bug that is at related to the TargetMany predicate.
The inner comment contains the class name of the entity bean associated with the table it should:
#foreach($role in $table.relationshipRoles)
#if($role.targetMany)
// $table.getClassName($role)
#end
#end
This inner comment contains the class java.util.Collections but the output should be identical to above
#foreach($role in $table.manyRelationshipRoles)
// $table.getClassName($role)
#end
The good news is this is not in the released product and results only when getting relations using the TargetMany predicate to filter relations. I would have thought the predicate and the explicit test would produce the same results but this is the second bug that is at related to the TargetMany predicate.