Must every Entity Bean be registered in persistence.xml?

后端 未结 3 2045
北海茫月
北海茫月 2021-02-20 07:49

I\'m using Eclipse Facets for JPA 2.0 and Hibernate 4.2 implementation. I think I recall that in previous project I would not have to register an Entity Bean in the persistence.

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-20 08:25

    It's possible when you created the project, you picked "JPA project" instead of "java Project". In case you don't see "Java Project", follow the "other" and under the wizard type "java" to see the "Java Project".

提交回复
热议问题