Wednesday April 28, 2004
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 in Java
at Apr 28 2004, 11:53:43 AM MDT
7 Comments
Search This Site
Recent Entries
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
Posted by Will on April 28, 2004 at 02:01 PM MDT #
Posted by inignokt on April 28, 2004 at 02:32 PM MDT #
Posted by Raymond Phillips on April 28, 2004 at 04:57 PM MDT #
Posted by dsuspense on April 28, 2004 at 05:02 PM MDT #
Posted by Robert S. Sfeir on April 29, 2004 at 05:57 AM MDT #
Posted by Raymond Phillips on April 29, 2004 at 08:22 AM MDT #
Posted by dsuspense on April 29, 2004 at 01:01 PM MDT #