dcsimg
Sequence generation
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, June 15, 2002 07:11 AM

Hi all Please note that i am using container managed entitybeans(2.0)in my project. when i tried to use composite primarykey in which one of the field was a automatic sequence no i am getting following error. when Automatic Key Generation is enabled, the Primary Key class must be java.lang.Integer. is it mandatory to use one simple integer key(not composite)when we want to use automatic key generation? Please suggest any way to generate sequence no automatically when using cmp entity beans . i am using weblogic6.1sp2 application server and database is oracle    More>>

Hi all


Please note that i am using container managed entitybeans(2.0)in my project.



when i tried to use composite primarykey in which one of the field was a automatic sequence no i am getting following error.



when Automatic Key Generation is enabled, the Primary Key class must be java.lang.Integer.



is it mandatory to use one simple integer key(not composite)when we want to use automatic key generation?



Please suggest any way to generate sequence no automatically when using cmp entity beans .

i am using weblogic6.1sp2 application server
and database is oracle

   <<Less

Re: Sequence generation

Posted By:   AlessandroA_Garbagnati  
Posted On:   Saturday, June 22, 2002 03:24 AM

Hi,

Check this disccussion on a sequence pattern, from TheServerSide.Com
About | Sitemap | Contact