Sebastien Arbogast wrote:
You're missing the rest of the outlets that generate the UserFactory, etc (since you used Tim's as an example and he's using spring, the Spring cartridge doesn't need those). That factory is generated along with the session-ejbs outlet (people either use this cartridge with spring or standalone with the session ejbs, sounds like you're not using either, so if you'd like I can add an outlet just for the factories) (outlets are the logical location to which files are generated). Regarding adding the path of the generated files to your regular source directory, do something like this in the maven.xml preGoal:Yahoooooo ! Thank you so much. It works just fine now. I certainly had
a problem with my xmi model, I did it again beginning with the one
generated by andromdapp and I used your files and it's perfect : my
files are generated (I just have that source path issue to fix).
Ok sorry I was talking about Tim's files and I forgot to mention it. The files he gave me are excellent for a simple WAR-only architecture like the one I'm using.
that configuration file is generated too, you don't need to maintain it
But I still don't understand why I don't have any hibernate configuration file generated whereas as you say, it should be.
classes with the Impl are never overwritten, put your business code there
Ok, good to know...
what cartridge are you using ?
Spring: check UserDaoBase.java
Hibernate: check UserFactory.java
By the way I just use Hibernate cartridge, I don't use any Spring container so I don't use spring cartridge. And I checked, I don't have any UserFactory.java generated, I just have an internal class Factory inside User.java and the only method of this one is newInstance() !
<preGoal name="java:compile"> <ant:path id="andromda.gen.src" location="${maven.build.src}/java"/> <maven:addPath id="maven.compile.src.set" refid="andromda.gen.src"/> </preGoal>
This will add the target/src/java directory to the regular maven compile path
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-user
