Quote:
something like: configuration.getClassMapping("someName").getProperty("yaProperty").getColumn(0).getLength()
Aha! After some stumbling around in the dark, I'm now getting somewhere.
There isn't a getColumn(int) method (in the version of Hibernate I'm using - 3.1.0 I think), but there is a getColumnIterator(), which amounts to much the same effect.
I can now obtain the data I'm after BUT it means hanging on to the configuration object.
Given a Session, is it possible to get back to the Configuration object from which the Session was created?
I know you can get the SessionFactory from a Session, but I don't see any way of getting the Configuration from that.
(I think I'm going to end up adding methods to do this sort of stuff to my DAO Java classes - I agree that POJO is not the best place, but I think the auto-generated code should make it easy for user-code to access this information)