This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sequential, auto key generation  RSS feed

 
tomasz brymora
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would iBatis be helpful in creating sequential, 'auto-generated' keys, or does it still need to be taken care of entirely in the application code to keep the project code database neutral as much as possible?
 
Salman Khattak
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
auto key generation
 
Brandon Goodin
author
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
iBATIS does not have a key generator built into it. However, it would not take much to either use the database or write your own key generator. There really isn't a need for iBATIS to handle this. If you provided more information we might be able to provide you with some insight as to how best to handle this.

Brandon
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!