[ http://jira.andromda.org/browse/ANDROMDAPP-8?page=all ] Chad Brandon closed ANDROMDAPP-8: ---------------------------------
Resolution: Won't Fix The default setup is for use with value objects, so if you want to return actual entities, you'll need to do what you just did or have your entities generated to your common directory. > Bidirectional dependency between common and core subprojects > ------------------------------------------------------------ > > Key: ANDROMDAPP-8 > URL: http://jira.andromda.org/browse/ANDROMDAPP-8 > Project: AndroMDApp Project Generator > Type: Bug > Versions: 3.2-RC1 > Environment: Tested with 3.2-RC1-SNAPSHOT > Reporter: Matthias Bohlen > Assignee: Chad Brandon > > After generating a J2EE app, core depends on common (see core/pom.xml). This > is OK. > But: The interfaces for services are generated into common. I use domain > objects as parameters to service methods (e.g. MyService.createUser(User)) so > that now the interface MyService contains a reference to the class User which > is in core. The Java compiler complains that it cannot translate the > interface: "cannot resolve symbol: User" because there is no dependency from > common to core in common/pom.xml. > I fix this by a change to my andromda.xml: > <property name="service-interfaces">${core.generated.dir}</property> > instead of > <property name="service-interfaces">${common.generated.dir}</property> > But I don't know whether this is what the author of andromdapp intended! :-) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- 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