N***@arsoe-trelaze.com
2004-11-18 13:13:02 UTC
Is somebody known how finding the foreign key columns when
relationshipRole is not targetMany?
I try to do
#foreach($fkey in $target.getPrimaryKeyColumns())
${fkey.sqlName.toLowerCase()}")
#end
where target is the relationshipRole one.
Of course it is not correct as if there is 2 attributes of the same classe
they will have the same FK.
I find how to do this with targetMany by using the ColumnMaps attribute of the RelationshipRole object but when the relation
is not targetMany the list is empty.
Nicolas
relationshipRole is not targetMany?
I try to do
#foreach($fkey in $target.getPrimaryKeyColumns())
${fkey.sqlName.toLowerCase()}")
#end
where target is the relationshipRole one.
Of course it is not correct as if there is 2 attributes of the same classe
they will have the same FK.
I find how to do this with targetMany by using the ColumnMaps attribute of the RelationshipRole object but when the relation
is not targetMany the list is empty.
Nicolas