You might be able to do a ejbCreate with out a primary key and try to read
the primary key in ejbPostCreate.
Ted Slusser
"Chris Miller"
<[EMAIL PROTECTED] To: Orion-Interest
<[EMAIL PROTECTED]>
m> cc:
Sent by: Subject: SQL Server -
Autoincrement Primary Keys
owner-orion-interest@orion
server.com
11/14/2000 10:54 AM
Please respond to
Orion-Interest
Hi all,
This is possibly more of a generic EJB question, although maybe not since
Orion has to implement the persistence...
I was wondering if it is possible to use CMP beans against an existing
SQL-Server database that has autoincrement primary keys. It's not possible
to insert a value for the key (have to supply null), so using something
like
counter.jar to override the PK generation is not an option. Has anyone done
this successfully? What's the trick, or am I stuck with BMP (as I suspect
is
the case)?
Thanks,
Chris