-
Entity Beans with Autogenerated Primary Key for DB2 Database (2 messages)
- Posted by: Rajendra Kulkarni
- Posted on: April 11 2007 00:01 EDT
We are using Entity beans for persistence for IDM DB2 Database. The Primary Key in database is Autogenerated(Identity) column. I wanted to know how to persist the bean where the PK value is generated by Database and How to retrieve this value after creation. Thanks.Threaded Messages (2)
- Re: Entity Beans with Autogenerated Primary Key for DB2 Database by Biswa Das on May 11 2007 06:24 EDT
- Re: Entity Beans with Autogenerated Primary Key for DB2 Database by Biswa Das on May 11 2007 06:27 EDT
-
Re: Entity Beans with Autogenerated Primary Key for DB2 Database[ Go to top ]
- Posted by: Biswa Das
- Posted on: May 11 2007 06:24 EDT
- in response to Rajendra Kulkarni
Solution is not database dependent. It is appserver dependent. Which appserver you are using For example this is how it works in weblogic. http://edocs.bea.com/wls/docs81/ejb/DDreference-cmp-jar.html#1203428 -
Re: Entity Beans with Autogenerated Primary Key for DB2 Database[ Go to top ]
- Posted by: Biswa Das
- Posted on: May 11 2007 06:27 EDT
- in response to Biswa Das
Hard luck. Check the link below http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/EJB_Container/1064344.html