Re: [JBoss-user] JBoss XML Composite Primary Key and CMP.
--- Devraj Mukherjee <[EMAIL PROTECTED]> wrote: > Hi all, > > I am trying to create a CMP Entity Bean where I need > to define a > combination of more than one field as the primary > key for the table, I was > wanting to know how do we define this in the > deployment descriptors. There is "easy way" to do this. Go to: http://www.sourceforge.net/projects/ejbdoclet Grab latest version. This piece of software would create all the descriptors for you. ( and all interfaces, primary key, bulk data object too...) regards, = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss XML Composite Primary Key and CMP.
Oh ya, just incase you were not clear on my last mail, you need to define a class that encapsulates your keys and then use that classname in your descriptor. In the 1.1 spec there is no way other way to use a compound primary key, I can not say for 2.0+. --jason On Sat, 23 Jun 2001, Devraj Mukherjee wrote: > Hi all, > > I am trying to create a CMP Entity Bean where I need to define a > combination of more than one field as the primary key for the table, I was > wanting to know how do we define this in the deployment descriptors. > > I am a JBOSS 2.2.2 user with the default installation with Tomcat. Sorry I > didn't mention this in my last email. > > Thank you. Regards, > > Devraj > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss XML Composite Primary Key and CMP.
Hi all, I am trying to create a CMP Entity Bean where I need to define a combination of more than one field as the primary key for the table, I was wanting to know how do we define this in the deployment descriptors. I am a JBOSS 2.2.2 user with the default installation with Tomcat. Sorry I didn't mention this in my last email. Thank you. Regards, Devraj ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user