We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78e128 commit bd438e2Copy full SHA for bd438e2
src/main/java/org/ngbsn/model/annotations/fieldAnnotations/GeneratedValueAnnotation.java
@@ -8,6 +8,6 @@ public class GeneratedValueAnnotation implements Annotation {
8
9
@Override
10
public String toString() {
11
- return "@GeneratedValue(strategy = GenerationType.IDENTITY)";
+ return "@GeneratedValue(strategy = GenerationType.AUTO)";
12
}
13
src/main/resources/templates/entity.ftl
@@ -39,6 +39,7 @@ public class ${table.className}{
39
<#list table.columns as column>
40
<#if column.primaryKey == true>
41
@Id
42
+ @GeneratedValue(strategy = GenerationType.AUTO)
43
</#if>
44
<#list column.annotations as annotation>
45
${annotation}
0 commit comments