Wednesday February 02, 2005
Generate your iBATIS mapping files with sql2iBatis From the iBATIS mailing list:
Hi everyone, I just wanted to remind everyone of Alex Egorov's sql2iBatis tool. I've recently had the chance to try it. If you have a database that's already created, this will save you a lot of time. It will kickstart your project. Given DDL, it generates the SQL Mapping files and the JavaBeans. It's super simple and extremely fast. You may want to tweak the Perl to generate bean field naming conventions to your liking, or just refactor it afterwards. You might also want to run the source through Jalopy or your favorite IDE formatter to achieve the formatting you want. However you cut it, this tool will save you tons of time (even if you don't use everything it generates...deleting is faster than writing). http://alxeg.narod.ru/ibatis/index.html Cheers, Clinton
Too bad it's a perl script. It would be nice to add something like this to AppFuse so you could get the same generate-mapping-files thing like Hibernate has with XDoclet. Posted in Java at Feb 02 2005, 07:10:11 AM MST 5 Comments
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
Search This Site
Recent Entries
- Happy Birthday Mom!
- 2008 - A Year in Review
- Portland Tech Meetup Tomorrow Night
- My "almost slept in a snow cave" Adventure with Clint Foster
- My Christmas Travel Adventure
- AppFuse Light converted to Maven modules, upgraded to Tapestry 5 and Stripes 1.5
- Dojo/Comet support in Java Web Frameworks
- Abbie is a Blue Skier!
- How I recovered data from my failed Linux box
- Costa Rica was Awesome!
Okay, I'll bite.
This is exactly the kind of thing perl excels at. Dismising it just because it's not written in java is rather short sighted of you I think. There is a best tool for each job and that tool is not always java.
Of course I may have missed your point all together.
Posted by Ian Joyce on February 02, 2005 at 08:29 AM MST #
Posted by Matt Raible on February 02, 2005 at 08:35 AM MST #
Posted by Euxx on February 02, 2005 at 09:25 AM MST #
Posted by Ian Joyce on February 02, 2005 at 09:26 AM MST #
Posted by Ben Litchfield on February 02, 2005 at 12:52 PM MST #