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:
- What is the use of the entity annotation ?
- Do they still map to the tables in the database ?
- Since they are not managed by provider, how can i use those entities to persist data?
Appreciate any answers to clarify my understanding.