dcsimg
How to write CMP Entity Bean for tables having Auto-Generated key
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bhaskar_Bhattacharya
Posted On:   Monday, April 5, 2004 05:51 AM

In case of CMP Entity bean mapped to a table having auto generated id as the Primary Key,how to write the ejbCreate() method?


Please use html tags to format code blocks.

It is not possible.

Posted By:   Rui_Hu  
Posted On:   Monday, April 5, 2004 07:05 AM

Use things like Oracle sequence for auto-generate key, is a bad design idea.



You do not have to have a primary for the sake of primary key



Try to avaoid have any data without any business meaning.
About | Sitemap | Contact