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

primary key generation in CMP

 
Andron Dre
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using sequence for primary key generation. Session bean gets next sequence number and put it into create method of entity bean.
I wonder if it make sense to put this call inside create method and remove pk from parameters list. Please keep in mind that it’s CMP.
thx in advance
 
Liar, liar, pants on fire! refreshing plug:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!