MrSqueezles wrote:
Since not all databases have system tables, I don't think Hibernate provides this functionality. You could map the tables, then run the queries through Hibernate, but I think it would be better for you to just query the database directly. I'd recommend using plain old JDBC, not Hibernate.
It's really interesting that you suggest this because that is what was going through my mind also and I actually did end up mapping the system table but that is a pain. Now my code has to have another entity class and mapping source for a table that I will never use except to get meta data from. This points up something that I find frustrating about Hibernate. I feel like my application is a mishmash of hibernate queries and native sql because of these types of things that Hibernate can't handle.