Hibernate Configuration配置摘要:
一、配置方案
- 映射文件位于classpath路径下:
Configuration cfg = new Configuration()
.addResource( " Item.hbm.xml " )
.addResource( " Bid.hbm.xml " );
- 直接指定映射类(硬编码):
Configuration cfg = new Configuration()
Hibernate Configuration配置摘要:
一、配置方案