Reports any simple and/or composite primary key defined multiple times in an entity class. A simple primary key must correspond to a single persistent field or property. The @Id annotation is used to denote a simple primary key. A composite primary key, when defined with the annotation @EmbeddedId, must correspond to a single persistent field or property. There must be only one @EmbeddedId annotation and no @Id annotation when the @EmbeddedId annotation is used. See JSR 220: Enterprise JavaBeans, Version 3.0, Java Persistence API, §2.1.4, §9.1.12. |
Powered by Hibero http://www.hibero.com/ |