-->
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: Business Objects and Underlying Data
PostPosted: Sun Apr 11, 2004 2:40 am 
Newbie

Joined: Sun Apr 11, 2004 2:25 am
Posts: 9
Our current database layout includes many tables that hold data that does not particularly conform to a business object - rather business objects are created using this data. The tables holding this data are not simple and have a lot of extra information so that the data can be analyzed.

My question is, does hibernate force us to create objects that represent each table in our database? For instance in order to create a "user" object I must create 30 other objects, each pertaining to an information table that a user might need, and then load them off the tables?

This really is a question of whether hibernate is a good choice for this type of database. It would seem straight JDBC would be a better idea for grabbing gobs of information from different tables that aren't really business objects and are rarely used by themselves., and stuffing them into beans.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 11, 2004 10:45 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Your gonna need to be a little more specific here...

Quote:
The tables holding this data are not simple

No idea what this means. All db tables are simple. They're just rows and columns. Can't get much simplier.

Quote:
does hibernate force us to create objects that represent each table in our database

Of course not! Now, obviously, if you want Hibernate to manage a particular table or association your gonna have to tell Hibernate about it somehow.

Quote:
This really is a question of whether hibernate is a good choice for this type of database

Well, as you really haven't described anything pertinent about the schema, that would be a difficult question to answer.


Top
 Profile  
 
 Post subject: ;)
PostPosted: Mon Apr 12, 2004 12:36 am 
Newbie

Joined: Sun Apr 11, 2004 2:25 am
Posts: 9
Sorry, I should have been more specific. By not simple I mean they contain many columns of different types.

I guess my question is then if one has a couple business objects that need to be loaded with information from many other tables (that aren't particularly objects), how does one map those tables to specific parameters to our objects in hibernate?


Top
 Profile  
 
 Post subject: =]
PostPosted: Mon Apr 12, 2004 2:01 am 
Newbie

Joined: Sun Apr 11, 2004 2:25 am
Posts: 9
More Specifically, I only want certain columns from that underlying data, not entire rows (which would make making objects for these tables make more sense)


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.