-->
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.  [ 1 post ] 
Author Message
 Post subject: Will Hibernate work for me?
PostPosted: Fri Sep 27, 2013 1:29 pm 
Newbie

Joined: Fri Sep 27, 2013 1:17 pm
Posts: 1
To make a long story short, I have a relational database with a REALLY bad schema that I'm trying to map using an ORM. I have a set of objects already defined that I think represent the data that I'm storing. My only step is to connect the DB to those objects. Hibernate seems to be the go-to solution, but I'm not sure if it will work for me. He's some of the issues I face:

1. I need to dynamically connect to different databases (all of the same type, not all with the same schema). At runtime, I will get connection information and then I must connect to and modify that database.

2. The schema in the databases is dynamic. The tables are all fixed, but in one particular table, columns are added and removed dynamically, at runtime. The names of the columns would also be resolved at runtime.

3. My data is spread across many tables. I've read that it's common to have 1 object = 1 table. But in my case, the data for one object could come from as many as 5 different tables.

So given those constraints, can Hibernate work for me? Or would I be better off just writing my own ORM? Sorry if it seems like I'm asking dumb questions. I'm brand new to ORMs, so a lot of concepts are foreign to me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.