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 

5
9 comments

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 !

1

Same here with 2020.1 thats really annoying

2

Same problem. The Dobri7 solution works for me.

1

7 Months after the initial report the great developers from Jet Brain still cannot find a solution.

0

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).

0

Same here. I guess it's easy to reproduce for yourselves guys. I use JDK 11.

0

Hello,

What IDE version do you use?

0

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).

0

Please sign in to leave a comment.