-->
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: dynamic data model & re-configuration
PostPosted: Thu Mar 09, 2006 1:59 pm 
Newbie

Joined: Thu Mar 09, 2006 1:39 pm
Posts: 1
Hi,

I'm in the planning phases of a project that has as a requirement the ability to change the datamodel at runtime. To accomplish this, our current plan is to use a set of static tables that will store entity metadata (e.g. datatypes, attributes, relationships, etc.) and then have a generic set of tables that will actually store the content, perhaps having Hibernate help out by actually creating new "subclass" tables for us on the fly (if possible).

So, the first thing I was wondering is can the dynamic model (mapping to Maps) can be configured/changed at runtime? Assuming that our meta-designer application could create either the necessary XML to describe the entity mapping, could we just re-load the session? or create a new session factory using that mapper? Has anyone had any success with doing that?

I'd also be grateful for any suggestions or links to other (open-source) projects that have similiar aspirations. In many ways, what we are building is akin to a database GUI (something like FileMaker Pro).

Thanks,
Hans


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 09, 2006 8:01 pm 
Newbie

Joined: Tue May 30, 2006 8:54 pm
Posts: 5
Hans,

I am also in need of this kind of feature and have been doing some research but couldn't really find any information on this. Did you find out anything more on this and pros and cons of this approach?.

Regards
Ulag


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 10, 2006 5:21 am 
Beginner
Beginner

Joined: Tue Oct 18, 2005 3:57 pm
Posts: 48
Location: Los Angeles, CA
You can certainly use org.hibernate.mapping.* classes to manipulate your data model and its mappings, but I'd seriously question the need for such a dynamic data model unless you are writing some kind of database tool.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 11, 2006 4:13 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:21 pm
Posts: 61
Location: Hannover
Hi,

I'm actually not sure what you mean with "changing the datamodell at runtime". Concerning hibernate there are three parts of the datamodell:
The database schema, the mapping files and the classes. Which of these three parts do you want to change at runtime?


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.