Hibernate注解中配置一对多 hibernate注解如何配置自定义它的主键生成策略
Hibernate注解中配置一对多
web.xml中
OpenSessionInViewFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
hibernate注解如何配置自定义它的主键生成策略
@Id
@GeneratedValue(strategy = IDENTITY)//自增长
@Column(name = "ID", unique = true, nullable = false)
public ID getId() {
// TODO Auto-generated method stub
return this.id
}