• Post Reply Bookmark Topic Watch Topic
  • New Topic

BMP

 
ALaxmi Shankaran
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using one BMP whose persistence is one table whose primary key is autogenerated,
Now in ejbCreate method which way is preferred
whether to use the primary key class ?
or not to pass the primary key field in the insert query (as it is autogenerated it will automatically
insert the incremented value)
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or not to pass the primary key field in the insert query (as it is autogenerated it will automatically
insert the incremented value)


use this one.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
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!