I found a place in my EJB book (O'Reilly 2nd ed. pg. 159) that talks about
having a compound key as a primary key.  It says that you have to map the
keys to corresponding fields in the bean class.  

Ex. If 'Component' is a compound primary key and 'id' is an attribute of
'Component' which findByPrimaryKey(Integer key) is to search for.  It says
the Component.id field must map to a XYZBean.id field of type int in the
XYZBean class.  

But it doesn't talk about mapping.  Is this something you must setup in the
jaws.xml file? Or does it just mean that for the attributes for which you
want to execute searches on (ie. write findBy methods for), you must
maintain duplicate copies of them in bean class?  If so isn't there a
cleaner way to do this?

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to