Changeset 7369


Ignore:
Timestamp:
May 17, 2017, 10:41:49 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2084: Upgrade to Hibernate 5.2

Hibernate has changed the ID generation implementation. This caused or batchers to create incorrect SQL for PostgreSQL (not tested with MySQL yet). This fixes most of the remaining tests:

TestDbControl FAILED
++1 tests failed!
++106 tests succeeded!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hibernate-5.2/src/core/net/sf/basedb/core/BatchUtil.java

    r7075 r7369  
    350350    StringBuilder values = new StringBuilder("VALUES (");
    351351   
    352     if (dialect.getNativeIdentifierGeneratorClass() == org.hibernate.id.enhanced.SequenceStyleGenerator.class)
     352    if ("sequence".equals(dialect.getNativeIdentifierGeneratorStrategy()))
    353353    {
    354354      // For sequence generators we must use:
Note: See TracChangeset for help on using the changeset viewer.