-->
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: Dynamic model on a dynamic table
PostPosted: Thu Mar 03, 2005 2:32 am 
Newbie

Joined: Wed Mar 02, 2005 11:01 am
Posts: 5
We have tables that could be changed by the application, eg. the application could add columns to a table.

Is it possible to use a dynamic model to retrieve results from such a table?

Eg.

<class entity-name="TestTable">

<id name="id"
type="long"
column="ID">
<generator class="sequence" />
</id>

<!-- Do I have to specify all the properties here? -->
<property name="route"
column="route"
type="int" />
</class>

Thank you.

Hibernate version: 3.0

Name and version of the database you are using: MySQL-3.23.38


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 5:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Take a look at dynamic-class and dynamic-component (not well documented but probably usefull)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 03, 2005 7:59 am 
Newbie

Joined: Wed Mar 02, 2005 11:01 am
Posts: 5
Could you please give me an example, or point me to documentation about it?


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.