Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://team.andromda.org:8080/jira/browse/JAVA-3 Here is an overview of the issue: --------------------------------------------------------------------- Key: JAVA-3 Summary: generation of toString() method Type: New Feature Status: Open Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Java Cartridge Assignee: Matthias Bohlen Reporter: Tomasz Lempart Created: Mo, 1 Nov 2004 2:26 PM Updated: Mo, 1 Nov 2004 2:26 PM Description: It is useful for logging and debug reasons to generate for every ValueObject toString() method. The template is not complicated: public String toString() { StringBuffer result = new StringBuffer(); result.append("${class.name}: ["); #foreach ( $att in $class.attributes ) #set ($atttypename = $att.type.fullyQualifiedName) result.append("${att.name}=" + ${att.name}); #if ($velocityCount != $class.attributes.size()) result.append(", "); #end #end result.append("]"); return result.toString(); } There is some problem with attributes which should not be logged i.e. password attribute. It could be used some tag value i.e. andromda.java.logged with false value to exclude attribute from generation. Such functionality is useful not only for java cartridge but for other too, for example hibernate cartridge can take advantage of it. Is there some possibility to make it generic? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://team.andromda.org:8080/jira/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Andromda-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/andromda-devel
