> From: A mailing list for Enterprise JavaBeans development > [mailto:[EMAIL PROTECTED]]On Behalf Of Evan Ireland
> I was just thinking about your point regarding EJB QL, and it struck > me that if your entity has a composite primary key (primkey-field is > not specified in deployment descriptor), then you can't write an > EJB QL query for it. That would be very unfortunate :-) > Say my primary key type has two fields (abc and xyz). I can't write: > > select object(o) from MyObject o where abc = ?1.abc and xyz = ?2.xyz select object(o) from MyObject o where o = ?1 should do the trick. That being said, there is indeed some cheating going on since this only works for the primary key. If you need to write a query that needs to "really" select on the object (as in SELECT in SQL), then you are stuck. Strangely enought, nobody seems to have complained about this, so I guess it's not such a big deal. -- Cedric =========================================================================== 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".
