I'm using Hibernate 3.6 and I've stumbled upon MapAccessor (http://docs.jboss.org/hibernate/orm/3.6/javadocs/org/hibernate/property/MapAccessor.html). Unfortunately, I'm not quite sure how to use it and I haven't been able to find a single example anywhere on the web.
So the accessor is for an entity which itself is a map. Could it be used to create a mapping of columns in a table to individual entries in that map, thus potentially allowing for dynamic table schema? Could someone provide an example of how to use it please?
Thanks!
|