Intellij 13 - Generate Persistence Mapping - JPA Annotations - No options to specify property based or field based

Hello Intellij Community


I am using Intellij 13 and I would like to generate persistence mapping using JPA. But on the generation tool, there are no options to specify whether the annotation should be on property/accessor OR field based.
By default, it creates only getter method based annotation. But I need to generate based on field.


This option is not new in Eclipse, currently Eclipse does support this option before generating Java code.


Does anyone know how to solve this ? Or this feature is not supported in Intellij ?

I have also supplied the screenshot for easy reference.


Thanks
Kannan



Attachment(s):
import-db-schema.JPG
3 comments
Comment actions Permalink

Thankyou Gregory. That works.

Also, why does Intellij generates attribute, getter and setter next to each other. In eclipse, it keeps all attributes together and all accessor methods together, which creates a neat code.
Not sure how to get configure that.

Thanks
Kannan

0
Comment actions Permalink

IDEA 13 and beyond should invoke rearranger after generation, so getters/setters should be arranged as configured.

0

Please sign in to leave a comment.