简体   繁体   中英

Hibernate: How to list all mapped objects?

How can I inspect at run time what Hibernate has setup for object mappings?

I have a mapping that is not generating any errors,it is in the hibernate config, but yet it is not being found. I want to inspect the mappings to verify that it is there and also check for typos.

您可以使用SessionFactory.getAllClassMetadata()获取所有实体的元数据。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM