In entity-cmp-20.vm there need to be some "other side"
code to have the proper jonas-relation generated:
My current working correction is just to add the
following at line 491 (just after the same jboss tags):
#if( $plugin.jOnAS)
* @jonas.ejb-relation
* ejb-relation-name="$relationName"
*
ejb-relationship-role-name1="${relationshipRole.getName($plugin)}"
* foreign-key-jdbc-name1="$columnMap.foreignKey"
* key-jdbc-name1="$columnMap.primaryKey"
*
#end
This is a hack, I didn't look closely into it.