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 {
17
17
18
18
public static final SequenceSupport INSTANCE = new MariaDBSequenceSupport ();
19
19
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
+
20
35
@ Override
21
36
public String getSelectSequencePreviousValString (String sequenceName ) throws MappingException {
22
37
return "previous value for " + sequenceName ;
You can’t perform that action at this time.
0 commit comments