I cannot generate constructor with parameters for class with @Entity annotation
Answered
Hello,
After last update I cannot generate constructor with parameters for class annotated as entity (via @Entity from javax.persistence). I can generate only noargs constructor or constructor matching super class
Please sign in to leave a comment.
Please vote and follow these issues:
https://youtrack.jetbrains.com/issue/IDEA-229354
https://youtrack.jetbrains.com/issue/IDEA-228014
Same situation.
Version for Idea : Ultimate 2020.1
Situation to reproduce :
1. Copy paste already existing persistence class entity
2. Changed the name of the class to new one
3. Added / removed fileds
4. Using Lombok's getter/setter and noarg constructor
5. Removed Lombok completely
No success
New situation :
1. Removed @Entity annotation
=> Constructor now works !
Same here with 2020.1 thats really annoying
Same problem. The Dobri7 solution works for me.
7 Months after the initial report the great developers from Jet Brain still cannot find a solution.
Please file a new bug at https://youtrack.jetbrains.com/newIssue?project=IDEA with the reproducible test case and the logs (Help | Collect Logs and Diagnostic Data).
Same here. I guess it's easy to reproduce for yourselves guys. I use JDK 11.
Hello,
What IDE version do you use?
All the known issues are fixed and it's no longer reproducible for us in the current IDE version. If it still happens for you, please report a new bug at https://youtrack.jetbrains.com/newIssue?project=IDEA, attach the sample project and the logs (Help | Collect Logs and Diagnostic Data).