Hibernate - ServiceRegistryBuilder

前端 未结 9 1877
眼角桃花
眼角桃花 2020-12-28 08:30

I\'m just trying to learn Hibernate (version 4 final) but I have a problem when trying to create the session factory. Here is some code related to the problem:

hi

9条回答
  •  独厮守ぢ
    2020-12-28 08:57

    It might be just nitpicking, but please try replacing the DOCTYPE declaration in hibernate.cfg.xml with this:

    
    

    Also, declare a name for the session-factory:

    
    

提交回复
热议问题