Why Hibernate Rocks - easy database switching
The app I've been developing over the last 6 months is going live next week. As part of that process, my client decided they wanted to put the production database on their AS400, rather than their JDE/WebSphere/DB2 Server. Hibernate and AppFuse made this super-easy. Add the JDBC Driver, specify a new dialect/jdbc url/driver name, and voila - we're talking to DB2400! After creating the initial tables using Ant we noticed that the table names were too long since the 400 has a limit of 10 characters. To fix this, I simply modified my XDoclet @hibernate.class table="..." to have shorter table names. After that, I simply had to re-arrange a few tables in my sample-data.xml file (for DBUnit) to avoid referential integrity issues. All-in-all, we migrated from MySQL to DB2 on an AS400 in a little under an hour this morning. Hibernate makes my development life soooo much easier.
Posted by Will on April 28, 2004 at 08:01 PM MDT #
Posted by inignokt on April 28, 2004 at 08:32 PM MDT #
Posted by Raymond Phillips on April 28, 2004 at 10:57 PM MDT #
Posted by dsuspense on April 28, 2004 at 11:02 PM MDT #
Posted by Robert S. Sfeir on April 29, 2004 at 11:57 AM MDT #
Posted by Raymond Phillips on April 29, 2004 at 02:22 PM MDT #
Posted by dsuspense on April 29, 2004 at 07:01 PM MDT #