Hibernate version:2.1.8
JBoss: 3.2.7
Hi, I've been searching the forum looking for a way to check the metadata described in the XML mappings just for validations. I need to check if a field is nullable, its max size, etc.
So far I've found how to get the metadata using the Configuration object, but since I'm creating the SessionFactory as a JBoss MBean and not from a config file I have no access to it. Through JNDI I can only access the SessionFactory...
Does anybody know how can this be acomplished? (Getting the Configuration object would be the easiest way to do this)
PD. I've found posts similar to this one, and still no answer.
|