hi, how to get actual database column name from ColumnMetaData api if I know only the 'mapping file name', and the corresponding bean class?
posted 9 years ago
Hi, You can use hibernate's "PersistentClass" to get the entity mapping information at runtime. You can get the mapping class for a persistent entity say "User" with the code below and explore the Table class apis for getting the columns of the table. For Eg: