Women in Technology

Hear us Roar



Article:
  POJO Application Frameworks: Spring Vs. EJB 3.0
Subject:   Wrong
Date:   2005-06-30 08:04:59
From:   yetanotherchristypedude
The author writes:


So if you need to switch the persistence service provider (e.g., change from JDBC to Hibernate) for a Spring application, you will need to refactor your application code to use the new helper classes.


This could be more wrong, but I'm not sure how! We use Spring, and changed from JDBC to iBATIS without changing a single line of application code. We did have to change two lines of XML, though.

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Wrong
    2005-06-30 09:30:07  MichaelYuan [View]


    Thank you for sharing your experience. I believe in a generic Spring application, you do need to change the helper classes to switch from one persistence provider to another. I am sure there are cases where you can design application so that the switch only requires minimal effort. But the article is talking about the generic picture.

    I ran the article through several Spring developers I knew. They did not dispute that point. So, I guess they had more or less the same experience I had. But, I'd like to be corrected if I am overstating the problem. So, I appreciate your input.