Search code examples
jpadefaultpersistence.xmlpersistence-unit

JPA default persistence unit


I get exception "There is no default persistence unit in this deployment." can I somehow mark unit as default?(I have only one persistence unit, so Id rather not call it by name)


Solution

  • No, you have to call PU's by name.