-
Notifications
You must be signed in to change notification settings - Fork 115
[Feature Request] - let objects have their own toString() method #913
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
Comments
|
Here is what ChatGPT says: The Common Intentions of
|
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
The text was updated successfully, but these errors were encountered: