Re: [Md4j-user] MD4J: J2EE Code Generation Tutorial with Maven
Status: Beta
Brought to you by:
mbatsis
From: Manos B. <man...@ge...> - 2007-02-23 16:08:08
|
Hey Wayne, You're fast :-) Quoting Wayne Fay <way...@gm...>: > I wanted to share some bug reports... since it seems you don't have > issue tracking set up yet for MD4J. Ah, guess i need to put that [1] in the POM (plus i need a parent POM as an umbrella for md4j (the core) and quickstarter. > I tried just adding a XML parser in the plugin dependencies and that > didn't work. I also tried adding a plugin-config-systemProperties > section like Surefire plugin uses but it didn't work -- that's not a > parameter for hibernate3 -- so I might see about getting that added. Weird. I'm using 1.5 right now but JAXP should have provided that in 1.4 AFAIK. > I did a little research online and discovered this was a known > problem > in Hibernate. It is happening because you have specified the > <mapping/> in your hibernate.cfg.xml -and- provided *.hbm.xml files. > I > commented out the <mapping/> nodes and got right past that problem. Good catch. > So after those fixes, I was able to successfully run mvn and generate > the files etc in domain. I haven't tried anything in the other > modules yet... ;-) I think you will find those modules much easier to use, plus that is where the fun of MD4J starts :-) > Finally, it might be nice to see some tests added to the > quickstarter, > for no reason other than to encourage people to get in a testing > frame > of mind and demonstrate how to configure Surefire to run tests > against > generated Hibernate source files etc. Obviously the tests can't help > people once they've changed the models, but they would give people a > starting point for implementing new tests of their own. I agree with all that but face some issues: * Domain tests would only make sense if generated as well IMHO. * I have no experience in writing tests that depend on a container (with or without mock objects) so this is rather hard for me when there is so much to do :-/ * writing tests for the core is also hard as i cant figure out what i want to test. Havent tried to test ant tasks before either. BTW i dont want to ask too much, but it would be helpfull for the (currently non-existent) other md4j users if we did this on md4j-user [2] :-) [1] https://sourceforge.net/tracker/?atid=779364&group_id=150959&func=browse++ [2] https://sourceforge.net/mailarchive/forum.php?forum_id=51478 Many thanks, Manos |