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

Auto Numbers SQL Server-------Entity bean

 
suzi lu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have auto numbers in many of my SQL-Server tables, how do i update them using my entity benas???Say, i have 5 fields and i set 4 of them and the 5th one is a auto number,does that get inserted automatically???
Pl help
Tx,
Suzi
 
John Bateman
Ranch Hand
Posts: 320
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Usually just inserting information into a database would automatically update the ID field. Your application server can be configured to do this FOR you, or, to let the SQL server handle it by itself. (I usually leave it alone and let the SQL Server handle the autonumbers/identities etc etc.
You may want to look at the forum specific to your application server. We have message bases covering most of the current popular J2EE app servers.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic