20050203 Thursday February 03, 2005

iBATIS Article on ONJava.com If you've heard of iBATIS, but never had the time to look into it, there's a good intro article on ONJava.com: Object-Relational Mapping with SQLMaps. iBATIS continues to be my persistence framework-of-choice when Hibernate doesn't mesh with the database schema. Now if we could just get someone to write a Middlegen Plugin to generate POJOs and SQL Maps from database schemas. ;-) Posted in Java at Feb 03 2005, 06:35:03 AM MST 6 Comments

Comments:

So you are using Hibernate as choice #1 ?

Posted by mikk on February 03, 2005 at 07:54 AM MST #

Yes, AppFuse uses Hibernate as its default persistence framework. It also allows you to install iBATIS - which can live side-by-side with Hibernate, or you can choose to remove Hibernate all together. I've found that Hibernate works well when I have full-control over the database schema. However, complicated (or heavily-normalized) schemas are easier with iBATIS. Also, migrating from pure JDBC to iBATIS is a lot easier than pure JDBC -> Hibernate.

I do realize Hibernate 3 supports iBATIS-like operations, but I haven't had a chance to play with it.

Posted by Matt Raible on February 03, 2005 at 08:12 AM MST #

I suppose that you could just build your own too. I built a simple ORM tool that generates a DAO/VO mapping using the Velocity template engine and some of the common apache libraries. It's pretty easy to extract the schema for the systems tables. The product is a simple, clean JDBC wrapper without layers of abstraction.

Posted by 143.199.125.10 on February 03, 2005 at 09:12 AM MST #

As much as time is an issue. If you can send me some sample of what you would want created from Middlegen (as much details as possible) and I will be able to build a plugin for Middlegen no problem.

Posted by David Channon on February 03, 2005 at 04:08 PM MST #

I've developped a basic Middlegen plugin for iBatis persistence layer that generates - Mapping XML file : SELECT BY PK/INSERT/UPDATE/DELETE and ResultMap - Java Bean If you're interested, you can get the source code at the RFE section of middlegen sourceforge project with id 1202421. Philippe Mouawad. Ubik-Ingénierie www.ubik-ingenierie.com

Posted by Philippe Mouawad on May 15, 2005 at 12:38 PM MDT #

Very nice

Posted by Nilay Sundarkar on February 29, 2008 at 07:20 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud