History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18780
Type: Bug Bug
Status: Open Open
Assignee: Gregory Shrago
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

JPA entity with private no-arg ctor produces strange error

Created: 17 Jul 08 22:48   Updated: 29 Jul 08 18:06
Component/s: J2EE.EJB3

Build: 8,577


 Description  « Hide
Don't have the project open right now, but an error similar to something like the following is given:
"ctor should be public|package|protected|package".

Note that package scope is listed twice.
I'm not sure if JPA allows private no-arg ctors, but the error given is wrong anyway.

Btw, module has a Hibernate facet, and is using hibernate through hibernate-annotations.



 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 29 Jul 08 18:06
The confusing and obviously self contradictory error reported is: "Class 'SomeEntity' should have [public, protected, packageLocal, protected] no-arg constructor".