muser wrote:
Hi,
I am trying to find some information about how Hibernate works with dynamic mapping/modelling. The little info I have found suggests that this was planned for version 2.2 but I cannot find anything more substantial on this feature or 2.2
Could someone please point me in the right direction for this?
Thanks in advance.
--muser
you need to build the SessionFactory on runtime and pass your mapping-configuration:
SessionFactory sf = new Configuration()
.configure("myconfig.cfg.xml")
.buildSessionFactory();