| Author |
How dos the application will know the path of persistence.xml file
|
Ravi Kiran Va
Ranch Hand
Joined: Apr 18, 2009
Posts: 2234
|
|
Hi ,
I am seeing examples for ConatierManaged EntityManager
Inside web.xml file :
Please tell me how the Application will know the path of persistence.xml file .
Thank you for reading
|
Save India From Corruption - Anna Hazare.
|
 |
Jaikiran Pai
Marshal
Joined: Jul 20, 2005
Posts: 8143
|
|
The possible locations of the persistence.xml is pre-defined by the JPA spec. But the user application does not need to know the location of the persistence.xml. It's upto the persistence provider (like Hibernate) to search and find the persistence.xml in appropriate locations.
|
[My Blog] [JavaRanch Journal]
|
 |
 |
|
|
subject: How dos the application will know the path of persistence.xml file
|
|
|