首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

spring3+hibernate3.3.5出现的有关问题

2013-09-11 
spring3+hibernate3.3.5出现的问题项目中使用spring3.0.3+hibernate3.3.5final,出现以下异常:@Entity(name

spring3+hibernate3.3.5出现的问题
项目中使用spring3.0.3+hibernate3.3.5final,出现以下异常:

@Entity(name = "RoomPartInfo")public class RoomPartInfo {@Id@Column(length = 50)@GeneratedValue(generator = "system-uuid")@GenericGenerator(name = "system-uuid", strategy = "uuid")private String part_id;@Column(length = 30)private String part_type;@Column(length = 100)private String part_name;@ManyToOne(fetch = FetchType.EAGER, cascade = { CascadeType.PERSIST,CascadeType.PERSIST })@JoinColumn(name = "room_id", updatable = false)private Room room;private Byte part_addr;。。。}

解决办法:降低hibernate版本到3.3.2,问题解决!


我的异常网推荐解决方案:org.springframework.beans.factory.BeanCreationException:,http://www.myexception.cn/j2ee/10759.html

热点排行