Skip to content

[Feature Request] - let objects have their own toString() method #913

Open
@phenzler

Description

Reason

In the java the toString() method is intended to return a string representation of the object.
As jimmer uses the toString() method for returning the objects data as JSON, this feature cannot be used anymore.

Description

Make it possible that each object can return it's own domain specific string representation and use a jimmer specific method to get the JSON representation of the objects data.
For example:
String toJson()
or
String asJson()

Existing solutions

No response

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions