- 在hibernate_cfg.xml文件中增加配置
org.hibernate.cache.EhCacheProvider
true
- 在map文件Instrument.hbm.xml文件增加
name="InstrumentB"
table="instrument_b"
>
false
name="StationNo"
column="StationNo"
type="integer"
/>
name="InstruTypeNo"
column="InstruTypeNo"
type="integer"
/>
注意: 在false之后;
- ehcache.xml
经测试,没有此文件也能正常工作,不知应该放在哪个目录下