I'm currently working on a solution to automatically generate ExtJS forms based on a hibernate mapping (I use hibernate reverse engineering for that based on @Annotations).
Hibernate has a
getPropertiesInterator()
http://docs.jboss.org/hibernate/core/3.5/api/org/hibernate/mapping/PersistentClass.html#getPropertyIterator%28%29
funciton for that. Which is accessible like this
((LocalSessionFactoryBean)sessionFactory).getConfiguration().getClassMapping(<Classname>.class.getName())
Which lists the properties of the table. I use this information to generate ExtJS inputs out of it
varchar => input text => textarea etc.
My question is, if there is maybe another (maybe better) way to get this information out of my hibernate configuration?
Regards
JS