in the Object.vm template, for complexObjectModel, for foreign key
relationships, the getRelatedObject - * Get the associated $className
object has the following
#set ( $column = $table.getColumn($columnName) )
#set ( $cjtype = $column.JavaNative )
#set ( $clo=$column.Name.toLowerCase() )
#if ($cjtype == "short" || $cjtype == "int" || $cjtype == "long")
#set ( $conditional = "$conditional${and}this.${clo}>0" )
- this is making the assumption that a short, int, or long column in a key
set to 0 indicates no relation. This is a BAD assumtion. In our code, for
example, the key contains a "divsion" field, and the division CAN be 0.
I would suggest that this restriction be removed for now, and re-thought how
to be reinstated conditionally based on the
model. This would most likely have to wait untill the object model and the
database model are seperated, as it will
require more attributes within the relationship.
Russell
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>