jaxb-api
jaxb-api copied to clipboard
Why @XmlID must be a String ?
Hi,
I need to serialize some EJB3 entities which have and numeric java.lang.Long id. The identifier of an entity is annotated with @Id for JPA ant with @XmlId but on runtime, the following exception occur :
Property "id" has an XmlID annotation but its type is not String.
Why this limitation ? Why not call the "toString()" method of the id field ?
Thank you. Stéphane
Environment
Operating System: All Platform: All
Affected Versions
[2.1.7]
- Issue Imported From: https://github.com/javaee/jaxb-v2/issues/543
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
@glassfishrobot Commented Reported by [email protected]
@glassfishrobot Commented Issue-Links: is duplicated by JAXB-806
@glassfishrobot Commented Was assigned to snajper
@glassfishrobot Commented This issue was imported from java.net JIRA JAXB-543