1. 单向一多对一: [color=green](需要配置 lazy="false") [/color]
<many-to-one name="status" column="Status" lazy="false"/>
2. hibernate 连接sqlserver 时,提示对象名 Article 无效:
需要在 model.hbm.xml 上加 schema="dbo" catalog="ZhuangWang"。
3. hibenate-search 中配置spring 的value 中配置 hibernate.search.default.directory_provider=org.hibernate.search.store.FSDirectoryProvider 是错误的,[color=green]最后一定不要空格[/color].
<many-to-one name="status" column="Status" lazy="false"/>
2. hibernate 连接sqlserver 时,提示对象名 Article 无效:
需要在 model.hbm.xml 上加 schema="dbo" catalog="ZhuangWang"。
3. hibenate-search 中配置spring 的value 中配置 hibernate.search.default.directory_provider=org.hibernate.search.store.FSDirectoryProvider 是错误的,[color=green]最后一定不要空格[/color].