On Sun, 26 Mar 2000, Amaresh Rajasekharan wrote:
> 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?
The PK really just uniquely identifies your entity bean to you and the EJB
container. It needn't extend down to the table. The PK class can still be
anything you like.
In fact, you don't even need a create() method in your entity home interface.
Just having a finder is enough. I've written some collection beans that are
never "created" -- they're always "found". That's because there's no primary
key in the underlying table.
Everything I've said is kind of nebulous, but if you provide some specifics to
your problem, a more specific answer could be provided.
cheers,
david
--
David Sims [EMAIL PROTECTED]
Sims Computing, Inc. www.simscomputing.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".