Hi,
I've been working some time with Hibernate and came to the need of flexibility among some objects, for which some fields are only known at runtime. Therefore I needed a way for Hibernate to persist beans that did not exist at compile time, and which definition is read from a configuration file.
I've found some way using the dynamic language Groovy. If anyone is interested, for example for allowing custom fields generation and storage in a simple way (one field = one column in a table), I think you should read on :
Dynamic database models with Groovy and Hibernate
Hope this could help some ;)