-->
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: Design Question
PostPosted: Wed Jul 14, 2004 9:29 am 
Beginner
Beginner

Joined: Fri Mar 05, 2004 1:48 pm
Posts: 28
Hi, I am using Hibernate to persist data for a course registration application. I am having to query like 5 different tables to gather info about each course. For instance, there is a "COURSE" table and then a "COURSE SPECIAL CODE" table. Here is my design question. Since I only need ONE particular field from the "COURSE SPECIAL CODE" table, should I add an identifier for the special code as well as methods to the COURSE class file to query the code table and populate the identifier, or should I be doing this in the course registration application?

I am trying to maximize performance but I don't want to violate any sort of design criteria of Hibernate.

Help is greatly appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 9:42 am 
Regular
Regular

Joined: Mon Feb 23, 2004 10:42 pm
Posts: 102
Location: Washington DC
With the beuaty of caching, Hibernate should be able to handle a lot of this for you. Check the forums for about caching.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 12:51 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
don't forget that cache doesn't make "everything" more performant, think twice before using it, think about scalability BEFORE and use cache only for objects you know they will be hit many times...

for your problem, i suggest you to take a look at formula, if you need to read a column on a joined table. But this is only for read (no update).

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.