-->
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.  [ 2 posts ] 
Author Message
 Post subject: dumb architecture question: part 1
PostPosted: Fri Feb 27, 2004 12:11 pm 
Newbie

Joined: Tue Sep 30, 2003 12:59 pm
Posts: 8
Hey guys,

Somewhat of a 'newbie' question as for better understanding the best practices.

I want to build a small web application which just allows a web interface to update a db schema. Nothing complicated about that. Now I have used hibernate in the past but not with DAO's and it was a read-only app. Since this application is very small(ie, terms of the db size, and use) I want to KISS and not overload it with a bunch of frameworks.

The first question relates to best use of hibernate/DAO method. In my db schema I have 8 tables which represents unique values but the table structure for these 8 tables are exactly the same(id, desc, date, active) then those 8 tables are bound in many:many, many:one, etc... within other child/parent tables.

How/what/where/when are some examples to implement something generic for updating those tables in hibernate using the DAO approach.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 01, 2004 11:18 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Just duplicate you mapping and use
session.saveOrUpdate(object); etc...

_________________
Emmanuel


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