jansupol / jsonbapi

0 stars 0 forks source link

Support for JsonbProperty on JsonbCreator constructors #36

Closed jansupol closed 8 years ago

jansupol commented 8 years ago

After reading through the EDR, this seems like a big miss. It should be possible to map a JsonbProperty to a constructor argument, rather than expect that field names match.

jansupol commented 6 years ago
jansupol commented 8 years ago

@glassfishrobot Commented Reported by genomeprjct

jansupol commented 8 years ago

@glassfishrobot Commented voyto said: It is possible. From the specification:

Parameters of constructor/factory method annotated with JsonbCreator will be mapped from JSON fields with the same name. The name of a parameter can be changed annotating given parameter with JsonbProperty annotation.

jansupol commented 8 years ago

@glassfishrobot Commented snajper said: I assume this one can be closed.

jansupol commented 8 years ago

@glassfishrobot Commented voyto said: I think so.

jansupol commented 8 years ago

@glassfishrobot Commented Was assigned to voyto

jansupol commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JSONB_SPEC-36

jansupol commented 8 years ago

@glassfishrobot Commented Marked as fixed on Monday, September 14th 2015, 1:55:59 am