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
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
|
| 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
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
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