Creating your own JPA generation templates

Answered

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.

1 comment
Comment actions Permalink

Please submit a feature request at https://youtrack.jetbrains.com/issues/IDEA and provide more details (the use case and the sample code).

0

Please sign in to leave a comment.