[ http://jira.andromda.org/browse/SPRING-141?page=comments#action_12469 ] Wouter Zoons commented on SPRING-141: -------------------------------------
another solution would be to prefix all generated code related to variable names with an underscore, people are less likely to model underscores in the model element names, I'll take care of it > association ends named entity generate uncompilable code > -------------------------------------------------------- > > Key: SPRING-141 > URL: http://jira.andromda.org/browse/SPRING-141 > Project: Spring Cartridge > Type: Bug > Reporter: Ryan Marsh > Assignee: Chad Brandon > > Problem has been experience specifically with spring cartridge but might be > aplicable to all. > Create model with two classes, an association between them, and one > association end named "entity". Both are stereotyped <<Entity>> and picked up > by spring cartridge. Code will not compile because the name entity will > conflict with other variables named entity (e.g. in the Dao operations). > Resolution: > model validation should fail if association end is named anything that will > cause uncompilable code to be generated (i.e. "entity"). ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642