Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to generate Primary Keys in CMP-EJB  RSS feed

 
Pras Tiwari
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I would like to generate Primary key for My EJB 2.0 Application. The Primary Key would be composed of three fields:-
table_name+Column_name+max_ID :-- eg:- (employeemastername0012)

How to do this???

Please help me

Thanx In Advance,

Prash
 
bimal upadhyay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what framework are you using weblogic or websphere . In websphere there when you are making datebase connectivity then at that time we have to supply it . Tell me about your framework the i send u the the step used in that cmp to make it as primary field
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!