-->
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: some questions (simple but very urgent)
PostPosted: Fri Sep 09, 2005 2:29 am 
Newbie

Joined: Mon Aug 22, 2005 3:34 am
Posts: 7
Hi

my problem is simple but urgent

can anyone guide me or provide me some material on following topics









1
Quote:
Benefits and drop backs of using hibernate with struts

2
Quote:
if we only use hibernate for persistence but for selection we use another technique, how would be this approach

3
Quote:
In which areas we mostly have to spend time while using hibernate? (i.e. design, mapping, configuration etc)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 6:09 am 
Beginner
Beginner

Joined: Thu Sep 08, 2005 10:29 am
Posts: 21
Nasir,

Here some thoughts:
1.
This depends of you approach of how you are gonna use Hibernate.
If you will use a layered architecture (see also http://www.hibernate.org/124.html) than you will use Hibernate just as you use any ordinary API. In you service/business layer you have to take care of transactions etc.
But if you want to automatically open en close connections (when needed!) for each request than you will have a complete different things to think of!

2.
I don't understand what you mean. Why not using Hibernate to select/retrieve the data? Why use more than 1 technique? You will just make you project more complex.
On the other hand * if you want to* you can use any technique available to retrieve data from a database.

3.
If you have a good design this will make if more easy to set up the mappings and configuration. In other words: if you have a good design which states exactly what you want to do, and you have experience with mappings and configurations these tasks should take less time then the design itself.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 9:08 am 
Regular
Regular

Joined: Mon Aug 29, 2005 9:46 am
Posts: 102
1. I'm using this structure and all I've seen so far is benefits. You see, struts means to separate layers, or concerns. Still, if you don't pay attention to what you're writing, you could destroy it. Hibernate helps you not to. It makes it easier to manipulate your model simply and separately. Using pure JDBC could confuse us and be a problem.

2. I agree with what marcelo said. Why use another technique? You would be looking for problems. The best thing to do is define a technique and use it all over.

3. I'd say design+mapping. You have to know a little bit of OO design before you use it, or you're lost.


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.