Guest User

Untitled

a guest
Nov 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. properties.put("hibernate.id.new_generator_mappings", "true");
  2.  
  3. public Class getNativeIdentifierGeneratorClass() {
  4. if ( supportsIdentityColumns() ) {
  5. return IdentityGenerator.class;
  6. }
  7. else if ( supportsSequences() ) {
  8. return SequenceGenerator.class;
  9. }
  10. else {
  11. return TableHiLoGenerator.class;
  12. }
  13. }
Add Comment
Please, Sign In to add comment