It is a bug. Thanks for reporting. I have created jira issue: http://fornax.itemis.de/jira/browse/CSC-403 I have fixed it in trunk. Read comment in CSC-403 if you need a patch for 1.6.0.
/Patrik Jef Pfeiffer wrote: > > Given DSL like this: > > Entity Foo > { > package=domain.bar > Repository FooRepository > { > save; > merge; > delete; > } > } > > And sculptor-generator.properties that override the default packages, such > as this: > > package.serviceInterface=service.api > package.serviceImplementation=service.impl > package.serviceProxy=service.proxy package.exception=domain.api.exception > package.repositoryInterface=repository.api > package.repositoryImplementation=repository.impl > package.accessInterface=repository.access.api > package.accessImplementation=repository.access.impl > > > It seems that the generated FooAccessFactory class doesn¹t create the > correct import for the Foo class. It imports ³domain.Foo², rather than > ³domain.bar.Foo². > > More specifically, the abstract access methods are correct (they use fully > qualified references to Foo), but the getPersistentClass() implementation > is > incorrect (it relies on the import statement). > > Please advise (it could certainly be my configurations that result in > this). > > Also, there is a workaround if I also set ³packages.domain=domain.bar² in > the sculptor-generator.properties file (but I¹d rather not since I want to > define the package on the Entity itself). > > Thanks! > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Fornax-developer mailing list > Fornax-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fornax-developer > > -- View this message in context: http://www.nabble.com/Generator-bug-with-entity-namespace-in-AccessFactory--tp25370111s17564p25371292.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer