-
1. Re: A CMR question
vincentchun Oct 3, 2003 2:14 AM (in response to pkrishna)"The above bean does not have a <primkey-field> element. Is there a way to prevent JBoss from creating a primary key column in jbosscmp-jdbc.xml?"
No
JBoss needs PK and all entity bean must have "findByPrimaryKey" method. If you miss it, you cannot deploy your .jar / .ear successfully. -
2. Re: A CMR question
pkrishna Oct 3, 2003 9:18 AM (in response to pkrishna)You have brought up an interesting point ie every entitybean should have a <primkey-field> element. The snippet of the ejb-jar file I had displayed in my initial post was part of enterprise techtips that Sun had in their web site. I have attached a ejb-jar.xml from Sun's techtips for August 2003. Look at the address and phone bean. They don't have <primkey-field>. You are right I was able to successfully deploy and execute the application in the techtip for July2003 only by modifying the ejb-jar.xml and the bean's home interface.