I probably should have phrased my question a little differently: Is this guaranteed to work on any J2EE-compliant appserver? Jeff -----Original Message----- From: Ray Harrison [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:30 AM To: Orion-Interest Subject: RE: [orion-interest]CMP/BMP and standard JDBC, speed is of essence Jeff - Yes, it really works. You can get access to the key value later by using getPrimaryKey on the instance. Cheers Ray Jeff Schnitzer <[EMAIL PROTECTED]> wrote: > From: Simon Stewart [mailto:[EMAIL PROTECTED]] > > Forgive me, but what about the case where you just set the > prim-key-class to be "java.lang.Object" and don't specify a managed > primary key field in your ejb-jar.xml file? While that's not the > world's most advanced method for automatically generating primary > keys, it's there, and it does work.... > > Of course, I have no idea how to refer to this autogenerated primary > key using EJB-QL, but that's beside the point ;)
Does that really work? Can you get access to the value of the key later? I've combed over that part of the spec, but it's terribly vague about how deferred keys are supposed to work. I've never seen a container that documented them, I have never seen an example of them being used, and (until now) I have never known anyone to have tried them! . Jeff Schnitzer [EMAIL PROTECTED] _____ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax