Isn't that information just forwarded to the database for table creation. In other words, any column width restrictions are imposed by the underlying database and not hibernate (from what I understand). Once the table is created, the metadata can be retreived from the DataBaseMetaData instance.
However...
I was looking a little deeper and I wonder if this might work:
From Configurations try:
Code:
Configuration c
// these iterators aren't typed so I'm assuming that the iterator
// iterates over instances of Mappings. I havn't tried it yet.
Mappings m = (Mappings)c.getTableMappings().next();
// same note; I assume this returns Tables
Table t = (Table)m.iterateTables().next();
Column c = t.getColumn(columnIndex);
// this looks like it...
int length = c.getLength();
A lot of assumptions here. I havn't tried it myself.