[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-20 Thread loubyansky
Yes, you can. First, get familiar with ejb-jar.xml and mapping in jbosscmp-jdbc.xml. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839349#3839349 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839349

[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-19 Thread madadi
hai.. Is it possible that i can use userid as a Primarykey for one table and Foreign key for other table. because i have a one registration form which contains personal data and specific data. but both should store in 2 different table. in my database i declared user id as a Primarykey for pe

[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-19 Thread loubyansky
| | userid | java.lang.String | | This is not going to work. A field can't be both CMP and CMR at the same time. And from ejb-jar_2_0.dtd | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839306#3839306 Reply to the post : http

[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-18 Thread madadi
Dear Alexey Loubyansky, I too having same problem actually i thought that i solved but it works due to i created another primary key in second table. userid is Primary key for One table and Foreign Key for 2nd table.I created the one more Primary key in second table(sem) than i can store inf

[JBoss-user] [Persistence & CMP/JBoss] - Re: Foreign Key is also Primary Key

2004-06-18 Thread loubyansky
Could you post the ejbCreate implementation, stacktrace and DDs? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839181#3839181 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839181