Keep the java.lang.Object type for primary kay class, but remove the <primkey-field>id</primkey-field> declaration. As the primary key is declared as unknown, you cannot set a CMP field as primary key. Normally, when doing that, no CMP field should be declared for the primary key. But you can anyway, but do not declare the CMP field as primary key. To find your bean, you must use also the findByPrimaryKey method.
You can have a look to the: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=47787 topic, which talks about the subject View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831914#3831914 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3831914 ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
