File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
hibernate-core/src/main/java/org/hibernate/dialect/sequence Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,21 @@ public final class MariaDBSequenceSupport extends ANSISequenceSupport {
1717
1818 public static final SequenceSupport INSTANCE = new MariaDBSequenceSupport ();
1919
20+ @ Override
21+ public String getCreateSequenceString (String sequenceName ) throws MappingException {
22+ return "create sequence " + sequenceName + " nocache" ;
23+ }
24+
25+ @ Override
26+ public String getCreateSequenceString (String sequenceName , int initialValue , int incrementSize )
27+ throws MappingException {
28+ return "create sequence " + sequenceName
29+ + startingValue ( initialValue , incrementSize )
30+ + " start with " + initialValue
31+ + " increment by " + incrementSize
32+ + " nocache" ;
33+ }
34+
2035 @ Override
2136 public String getSelectSequencePreviousValString (String sequenceName ) throws MappingException {
2237 return "previous value for " + sequenceName ;
You can’t perform that action at this time.
0 commit comments