Sanjay Nambiar wrote:
>
> I have an application in which a couple of tables simply do not have primary
> keys.The ejb spsecifications state that one should have a method
> corresponding to ejbfindbyprimarykey().
> In this case I would be unable to implement ejbFindByPrimaryKey() though I
> could still declare the method with an empty body.
>
May I ask how you expect to separate the table into entities if you cannot
search for them in any way? Think through how you would logically find separate
entities in the table, and I bet you either find a primary key (remember that
you can use several columns for a primary key) or you find that you cannot
distinguish between entities (and should instead aggregate in some way using a
session bean or something else).

regards
/Kalle Blixt
--
"Fur coats made for ladies from their own skin." (That has got to hurt)
Karl-Fredrik Blixt
Computer Science student at LiTH, Sweden
Homepage: http://travel.to/kp
Telephone: +46-(0)13-17 99 29
Cellular: +46-(0)739-87 11 03
ICQ: 4744258

===========================================================================
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".

Reply via email to