Some databases don't allow tables without a unique or primary key,
for the database that do, there is usually a unique rowidentifier for that
particular row.
Another way of looking at it is that all the columns together are the
primary key.
Filip
Filip Hanik
Engineering Manager/Architect
XMarkstheSpot
[EMAIL PROTECTED]
Come for the cash, stay for the convenience @ http://www.XMarkstheSpot.com
Amaresh
Rajasekharan To: [EMAIL PROTECTED]
<amaresh@NETSCAPE cc:
.NET> Subject: Entity Bean with No Primary
Key
Sent by: A
mailing list for
Enterprise
JavaBeans
development
<EJB-INTEREST@jav
a.sun.com>
03/26/00 06:43 PM
Please respond to
A mailing list
for Enterprise
JavaBeans
development
Hello All,
I have a question on Entity Beans and table mapping. If there is a table
with no primary key (none of the columns are unique and non null), how can
one
write an entity bean that maps to that table? Basically, I am not sure
about
writing an entity bean with no key fields. Is that possible? In which case
what about the PrimaryKey class?
Would be grateful for any suggestions.
Thanks and Regards
Amaresh
____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".