0 Replies Latest reply on Mar 15, 2013 1:30 AM by kkkppp

    [Jboss 7.1.3] GenerationType.AUTO doesn't work with mysql autoincrement

    kkkppp Newbie

      Running tests, encountered such an error:


         [cactus] Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'sw2_std.hibernate_sequence' doesn't exist


      I found a suggestion to use GenerationType.IDENTITY for mysql, but it won't work if I deploy on Oracle. Is there some container level configuration to define default strategy?