Women in Technology

Hear us Roar



Article:
  iBatis DAO
Subject:   Spring?
Date:   2005-08-11 11:51:25
From:   stnfdnacho
Isn't Spring's DAO layer essentially the same thing as this? It can use SQL Maps or JDBC or Hibernate, etc. Why would you use this over Spring?


Andy O

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Spring?
    2005-08-13 07:58:34  laker2000 [View]

    No. Spring's DAO layer kinda sucks. For simple stuff is it fine. But as soon as you start using paramerterized queries, stored proc, etc. it becomes more tedious that raw jdbc.
    • Spring?
      2005-08-17 06:42:04  mraible1 [View]

      What about using Spring's DAO layer to simplify accessing iBATIS? I like it because it allows you to set primary keys w/o having database-specific code in your SQL.xml mapping files (example (http://tinyurl.com/c5zbs) ). Of course, if iBATIS supported JDBC 3.0 and getGeneratedKeys(), there might be a more elegant solution. Last time I checked (http://issues.apache.org/jira/browse/IBATIS-142) , they didn't support it.