The field name should be your bean's field name (maybe spId?) -- not the database column name.


[EMAIL PROTECTED] wrote:
Hi people.
I'm new to the list, and new to CMP/CMR ejbs (I used Jboss 2.4 until now,
mostly with BMPs).
I try to to have a 1:N relationship between two beans, (SupportPackCMP and
PeripheralCMP), using Xdoclet tags. I'd like tables to be created by the
app. server
When I deploy under JBoss 3.2.3, I have the following exception :
org.jboss.deployment.DeploymentException: Role 'supportpackToPeripheral' on
Entity Bean 'SupportPackCMP' : CMP field for key not found: field
name='SP_ID'
I searched the web for a piece of answer, but didn't find anything.
The two beans are attached.
Thanks for your help
Frédéric




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to