org.hibernate.AnnotationException: No identifier specified for entity: com.hs.model.CramSession

忘了给id注解了

  @Id
    @GeneratedValue(generator = "_native")
    @GenericGenerator(name = "_native", strategy = "native")

加上就解决

猜你喜欢

转载自www.cnblogs.com/jnhs/p/12726504.html
今日推荐