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??