Hi All,
Does an EJB have to have a primary key field as in if I am modelling a Table (that does not have a primary key) can I replicate this in an EJB...Reason for asking is that an Entity EJB create should return PK...or is this not the case...
Cheers,
JC
-
Does EJB have to have Primary Key (2 messages)
- Posted by: James Cloney
- Posted on: April 27 2001 04:51 EDT
Threaded Messages (2)
- Does EJB have to have Primary Key by Harish Muleva on April 27 2001 08:27 EDT
- Does EJB have to have Primary Key by Tony Brookes on April 27 2001 11:52 EDT
-
Does EJB have to have Primary Key[ Go to top ]
- Posted by: Harish Muleva
- Posted on: April 27 2001 08:27 EDT
- in response to James Cloney
how a primary key mantion when u create a table in database
if u can mail me please mail me on this add
vaishali_godha at rediffmail dot com
thanx
-
Does EJB have to have Primary Key[ Go to top ]
- Posted by: Tony Brookes
- Posted on: April 27 2001 11:52 EDT
- in response to James Cloney
Your EJB primary key does not have to relate to the database primary key in any way, it's just that it usually does.
You should have a primary key somewhere though.
If the data you are modelling here is, for example, a time series with no real context and hence no primary key then it's probably not suitable for entity bean.
Chz
Tony