• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between native and increment gernerators

 
sudhan reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friens
what is the difference between native and increment generators.in which conditions that are used.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest using native, because it covers increment. Basically increment just means the database will automatically increment the PK on its own.

Native means use the database's native means of PK generation. So if you are using Oracle it will be a sequence table, if MySQL a "increment" field.

So if you used "increment" against MySql that would work but fail on Oracle. If you used "sequence" against Oracle it would work, but fail against MySql. If you used "native" for Oracle and MySql it would work.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic