• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

DB connectivity approach

 
Greenhorn
Posts: 2
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

Am developing an dynamic web application from scratch, I have decided to use the below

Spring 3 Framework
Mysql DB
Eclipse Galileo
Java 5
Tomcat 7
Maven
Junit
Ant

Point to be noted are,

I may switch to other DB vendor later.
Application will let user to compare different service providers like comparing (mobile,car)
Application will show reports using pagination.

Now the problem is, I couldn't make up my mind which approach to use for DB access, whether to use Spring JDBC or ORM(Hibernate)
Requests you to suggest the ideal approach and comments on the tools selected fro development.

Thank you.
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This depends on you application, I would say.
You can start by creating a prototype that employs Spring-JDBC module to access the database, and a second one that employs Spring-ORM module. Compare and contrast the two prototypes.

Why did you decide to use Ant and Maven in the same project?
 
Rajkumar Moorthy
Greenhorn
Posts: 2
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Hussein Baghdadi,

Thanks for you response. To make my concern clear, I will reframe question like is it wise to choose Hibernate for the reasons I have stated in my first post like,

  • I may switch to other DB vendor later.
  • Application will let user to compare different service providers like comparing (mobile,car)
  • Application will show reports using pagination.
  • Search mechanism like searching for a profile by providing various input



  • Included ANT by mistake. Thanks again.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic