I got an error saying
when I deploy my roo generated war file to Tomcat 6.0.Code:org.hibernate.AnnotationException: No identifier specified for entity: MyEntity.
My project is using Spring 3.0 + Hibernate 3.4.
but in MyEntity_Roo_Entity the code is as below:
What is wrong with my code? The primary key has been defined in MyEntity.id. Why does it show that error?Code:@Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name = "id") private Long MyEntity.id; @Version @Column(name = "version") private Integer MyEntity.version; public Long MyEntity.getId() { return this.id; } public void MyEntity.setId(Long id) { this.id = id; }


Reply With Quote