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

Key: IDEA-17798
Type: Bug Bug
Status: Open Open
Assignee: Gregory Shrago
Reporter: Kyrill Alyoshin
Votes: 1
Watchers: 1
Operations

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

@EmbeddedId annotation on inner static composite primary key not recognized

Created: 17 Apr 08 18:15   Updated: 18 Apr 08 17:48
Component/s: J2EE.Hibernate

Environment: Windows XP

Build: 7,757
Severity: Medium


 Description  « Hide
Basically I have a Hibernate entity class with a composite primary key. The primary key class is declared as public static (inner) class of the entity class with the @Embeddable annotation on it.

IDEA flags pk property declaration in the main class as '@EmbeddedId attribute type should be an @Embeddable type'. But it is!

Please fix it.

Thanks.



 All   Comments   Work Log   Change History      Sort Order:
Bryan Young - 18 Apr 08 17:48
I get the same error when my primary key class is a regular class (in it's own .java file). In what situation does @EmbeddedId work in IDEA?