-->
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.  [ 2 posts ] 
Author Message
 Post subject: dynamic-component + dynamic model
PostPosted: Tue Aug 17, 2004 6:11 am 
Newbie

Joined: Tue Apr 13, 2004 6:41 am
Posts: 19
Hi,

After reading http://www.hibernate.org/171.html (Hibernate and dynamic models) it is not quite clear if it is possible to use dynamic-component to add new key/value pairs during the lifetime of SessionFactory.

As I understand Map keys which will be persisted must be declared as <property> elements.

Ex:

<dynamic-component name="userAttributes">
<property name="foo" column="FOO"/>
<property name="bar" column="BAR"/>
<many-to-one name="baz" class="eg.Baz" column="BAZ"/>
</dynamic-component>

if Map contains key/values:

foo/1
bar/2
aaa/3

aaa will be not persisted??

Is it possible to add <property name="aaa" column="AAA"/> at runtime for existing SessionFactory to make aaa persistent??


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 17, 2004 6:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
No, you can add it using Configuration and then rebuild SF.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.