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

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

Comments

Projects
None yet
2 participants
@manfreddev

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

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 6, 2011

Member

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

Member

timowest commented Nov 6, 2011

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

@manfreddev

This comment has been minimized.

Show comment
Hide comment
@manfreddev

manfreddev Nov 8, 2011

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

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

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 15, 2011

Member

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

Member

timowest commented Nov 15, 2011

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

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 19, 2011

Member

Released in 2.2.5

Member

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