CMP without Primary Key.
1 posts in topic
Flat View  Flat View

Posted By:   satheesh_R
Posted On:   Sunday, September 9, 2001 05:09 AM

Please let me know how can I make a primary key class for a table which does not have primary keys., and what i can put in Deployment Descriptor.

thanks saidu

Re: CMP without Primary Key.

Posted By:   shivaram_madala  
Posted On:   Sunday, September 9, 2001 11:19 PM

Hi Saidu,

U need not have a primary key set for any table to have
mapping to ur CMP EJB. U can map ur EJB's primary key field to
any of the DB field which maintains Unique values. For this uniqueness,
U can set a Unique Constraint on that field also.

Just try working like this.
All the best.

About | Sitemap | Contact