Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No usable constructor for java.util.Currency #617

Closed
umbreak opened this issue May 21, 2014 · 2 comments
Closed

No usable constructor for java.util.Currency #617

umbreak opened this issue May 21, 2014 · 2 comments
Milestone

Comments

@umbreak
Copy link

umbreak commented May 21, 2014

org.mongodb.morphia.mapping.MappingException: No usable constructor for java.util.Currency

Currency usses a factory method to create an instance of the object, and does not provide any constructor. Can you provide a mapping for it? Or I have to write my own converter?

Note that jackson and other JSON libraries do the marshalling/unmarshalling of Currency correctly and out of the box.

@evanchooly evanchooly added this to the post-1.0 milestone Jun 5, 2014
@evanchooly
Copy link
Member

This can be handled by writing a converter. Bumping to post-1.0 for now unless a converter is submitted.

@evanchooly evanchooly removed this from the post-1.0 milestone Jan 14, 2016
@evanchooly evanchooly added this to the 1.2.0 milestone May 25, 2016
@evanchooly
Copy link
Member

depends on #940

@evanchooly evanchooly modified the milestones: 1.2.0, 1.3.0, speculative Jun 1, 2016
adispenza pushed a commit to adispenza/morphia that referenced this issue Jun 14, 2017
adispenza pushed a commit to adispenza/morphia that referenced this issue Jun 14, 2017
adispenza pushed a commit to adispenza/morphia that referenced this issue Jun 14, 2017
adispenza added a commit to adispenza/morphia that referenced this issue Jun 14, 2017
adispenza added a commit to adispenza/morphia that referenced this issue Jun 14, 2017
@evanchooly evanchooly modified the milestones: speculative, 1.4.0 Sep 24, 2018
VPriesnitz pushed a commit to VPriesnitz/morphia that referenced this issue Oct 5, 2018
@evanchooly evanchooly modified the milestones: 1.4.0, 1.5.0 Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants