1

I observed there are two places for placing jpa properties:

  1. entity manager factory in spring context:

enter image description here

  1. persistence unit in persistence.xml:

enter image description here

I want to ask what are the difference of them. And which takes precedence?

user8328365
  • 330
  • 2
  • 6
  • 1
    Set the same thing in both files but with different value and see whats in effect – Antoniossss Jul 10 '18 at 22:13
  • check out these documentations for persistence.xml https://www.objectdb.com/java/jpa/entity/persistence-unit and Entitymanager https://docs.oracle.com/javaee/7/api/javax/persistence/EntityManagerFactory.html or these other question https://stackoverflow.com/questions/1989672/create-jpa-entitymanager-without-persistence-xml-configuration-file – Austine Gwa Jul 11 '18 at 00:37

0 Answers0