Do I need elements in persistence.xml?

后端 未结 11 1771
滥情空心
滥情空心 2020-11-22 16:12

I have very simple persistance.xml file:




        
11条回答
  •  旧时难觅i
    2020-11-22 17:01

    For those running JPA in Spring, from version 3.1 onwards, you can set packagesToScan property under LocalContainerEntityManagerFactoryBean and get rid of persistence.xml altogether.

    Here's the low-down

提交回复
热议问题