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

Add generation for "toString" & "constructor" in data beans #39

Closed
manfreddev opened this issue Nov 6, 2011 · 4 comments
Closed

Add generation for "toString" & "constructor" in data beans #39

manfreddev opened this issue Nov 6, 2011 · 4 comments

Comments

@manfreddev
Copy link

@manfreddev manfreddev commented Nov 6, 2011

Would it be possible to generate two extra methods on the data beans, a constructor method, and a tostring method for convenience?

@timowest
Copy link
Member

@timowest timowest commented Nov 6, 2011

Could you give an example what the toString() implementation could look like?

@manfreddev
Copy link
Author

@manfreddev manfreddev commented Nov 8, 2011

return "mypropertyname1: " + mypropertyvalue1 + "\n" +
...
"mypropertynamex: " + mypropertyvaluex;

@timowest
Copy link
Member

@timowest timowest commented Nov 15, 2011

I added support via the setAddToString and setAddFullConstructor switches. The implementations are protected, so overridable.

@timowest
Copy link
Member

@timowest timowest commented Nov 19, 2011

Released in 2.2.5

@timowest timowest closed this Nov 19, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants