Hibernate buildSessionFactory() Exception

前端 未结 4 1911
一向
一向 2021-01-02 14:21

I have a serious problem with hibernate. I followed various books und online tutorials, but I ever get the same Exception \"ExceptionInInitializerError\" obviously thrown by

4条回答
  •  滥情空心
    2021-01-02 14:51

    I ran into this problem once before. I eventually discovered that adding a non-annotated method to the entity where annotations are decorating the getter methods, gets you in this situation. If you make the annotations around the fields rather than the getter methods, then you can have extra unmapped methods.

提交回复
热议问题