Hi,
I found the source of the problem. Looks like this may be a bug in the JBoss
Code itself..
Environment: JBoss 3.2.4, Oracle 9i
Scenario : Bean called OrganizationalUnitBean (table : ORGANIZATIONAL_UNIT) .
This had two CMR's to itself - parent and child relationships e.g
getOrganizationalUnitParent() and getOrganizationalUnitChild().
The generated alias name for the CMR's was something like
ORGANIZATONAL_UNIT_organziationalUnitParent and this was more than the
customary 30 character limitation.
The source of the problem seems to be :-
org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand
if(join)
{
relationTableAlias = relationTable;
relatedTableAlias = relatedTable.equals(relationTable) ?
relationTable + '_' + cmrField.getFieldName() : relatedTable;
}
There is no truncating of the alias name here.. and that's causing the
problems. Not sure if this needs to be rectified or maybe the design of the
bean itself. For the time being, I have changed the method names to be
getParent() for e.g..
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3892278#3892278
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3892278
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user