Reputation: 1248
I have few JPA annotated entity classes in my sample application i am building and almost all are specified in the persistence unit to be managed by the JPA provider.
For those entity which are annotated but not included in the persistence.xml:
Appreciate any answers to clarify my understanding.
Upvotes: 2
Views: 10048
Reputation: 16050
JPA will include any class annotated with @Entity
in the persistence management setup. You don't need persistence.xml
if you use annotations.
Cheers,
Upvotes: 4
Reputation: 47373
JPA
scans automatically for classes annotated with @Entity
and includes them.
Upvotes: 1