This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Auto Numbers SQL Server-------Entity bean  RSS feed

 
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
Boost this thread!