Creating your own JPA generation templates
已回答
Intellij does tell me how to create a template but I want it to be JPA specific. File->settings->Editor->File and Code Templates->Files click on the + and name your template.
What I want is for my template to do is what it already does however with a few additions.
1) char is defined as a String and in the @Column it generates columnDefinition = "CHAR"
2) Getter and Setters use Java 8 Optionals.
请先登录再写评论。
Please submit a feature request at https://youtrack.jetbrains.com/issues/IDEA and provide more details (the use case and the sample code).