-->
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.  [ 4 posts ] 
Author Message
 Post subject: can i use hibernate for this
PostPosted: Thu Oct 30, 2003 5:38 pm 
Newbie

Joined: Thu Oct 30, 2003 5:31 pm
Posts: 4
Hi,

I am totally new to database programming using java but have worked on java and databases individually for quite a long time.

So here is the requirement.

From the 3rd party application (connectivity no problem) I will get a database name and table name. If a user clicks on that link, I should sign him into the database using his username and then display the columns of the table, along with maybe the 1st 10 rows. He would enter the search criteria (for example an accnt number) and press enter. This would return the search results. The table name and database name is unknown until runtime. I could handle exception on connectivity if incorrect information in provided.

Now I have seen a lot of activity about hibernate, jdo and plain of jdbc. I know this can be done using jdbc (basically what I have is a database viewer). I would like to see you opinions on whether hibernate can be used for what i need.

Please let me know. Appreciate your help.

TP.


Top
 Profile  
 
 Post subject: is there anyone out there?
PostPosted: Fri Oct 31, 2003 2:59 pm 
Newbie

Joined: Thu Oct 30, 2003 5:31 pm
Posts: 4
come ppl some help please.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 3:37 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
looks like a job for JDBC to me. the whole point of Hibernate is to give an OO interface to a database schema, but you want to expose that schema directly to the user.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 6:04 pm 
Regular
Regular

Joined: Fri Sep 05, 2003 12:01 am
Posts: 80
Location: Bogot
IMHO:

Hibernate is suited for apps that have a domain model (and thus bussiness logic). The domain model objects should preferebly know nothing about persistence.. this is where DAO's come in


Basically what this means is that if you only want to do CRUD on a simple web page, hibernate could be an overkill...

If you do go the JDBC way and need to expose db schemma details, take a look at this.. it might help
http://java.sun.com/j2se/1.3/docs/api/java/sql/DatabaseMetaData.html

_________________
Mauricio Hern


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.