-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Hibernate or JDBC
PostPosted: Fri Dec 03, 2004 9:51 am 
Newbie

Joined: Tue Nov 16, 2004 9:43 am
Posts: 11
Hi;

I have a web application under j2ee who consults only of the data into database and post them (display).
The application do not modify the database (no operations of creation, nor of modification, nor deletion) only Reload operation.

I hesitate between Hibernate and rowset api (JDBC) ?

Which is your opinion ?

regards;


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 03, 2004 11:39 am 
Regular
Regular

Joined: Thu Oct 07, 2004 4:45 pm
Posts: 92
It depends, of course. Hibernate probably gives you a lot more than you need, but that doesn't mean you shouldn't use it.

We use a combination of Hibernate and JDBC (using the Spring Framework) in our app. The reason we use JDBC is because we work with some read-only data that can't be easily mapped in Hibernate. (The read-only data is in views that don't have a unique key, and we don't control the schema.) If you do use JDBC, I recommend Spring, as it has some great facilities for handling JDBC boiler-plate code. And it makes it easy to have co-existing Hibernate and JDBC Data Access Objects.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 03, 2004 1:53 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Quote:
The read-only data is in views that don't have a unique key, and we don't control the schema.

This is bad reason to use or not to use JDBC. You can use 'select distinct', you need to filter dublicates anyway, do not you ? Projection is a very usefull feature for this use case too.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.