hibernate 关联时遇到问题

用户表User 中 subsectionId 字段 与 Subsection表中 id 关联,user 表中subsectionId 默认为 '' ,使用延迟加载,再查询用户表的数据时,当user.getSubsection() 时老是报错   org.hibernate.ObjectNotFoundException: No row with the given identifier exists,后来发现是若是不设置为 null ,hibernate 老是会任务这个字段是有值的,后来把user表中数据默认为null后 就没有这个问题了