Hi cmwong.
Here is what i did :
I inherited all my entity beans from a bean that generates the pk in its
ejbCreate method (it selects nextval from an env-entry sequence name)
and in each bean's ejbCreate i invoke super.ejbCreate().

I would love to hear comments about this method of work...

Shahar.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Wong Chee Mon
Sent: Wednesday, January 17, 2001 6:16 AM
To: [EMAIL PROTECTED]
Subject: [jBoss-User] Entity CMP


I have a EntityBean, my question is

how do I use this bean to create the next available primary id?
( the create method required a primary id)
should I create a session bean to get the MAX id + 1 ?

cmwong




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to