Skip to content

No usable constructor for java.util.Currency #617

@umbreak

Description

@umbreak

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions