This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
persistence.xml is for storing database details used behind hibernate. Mostly you have one persistence.xml file in your application which is common for all entities.
orm.xml is mostly used per entity. For employee entity, employee-orm.xml. For Manager entity, manager-orm.xml etc.
Note that i have used the term "mostly". Its bacuse you can have one orm file for all entirties but that is not a good practice.
We don't have time to be charming! Quick, read this tiny ad:
Gift giving made easy with the permaculture playing cards