hibernate3.6Final中本身集合了annotations
路径在 hibernate3.jar\org\hibernate\annotations 查询annotations是否存在
在User Libraries中加入下面的包即可
[如图:附件]
在model中引入
import javax.persistence.Entity;
import javax.persistence.Id;
使用
@Entity
@Id
即可