jQuery in Action, 2nd edition*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes orm.xml and persistence.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "orm.xml and persistence.xml" Watch "orm.xml and persistence.xml" New topic
Author

orm.xml and persistence.xml

kumar mahesh
Greenhorn

Joined: Nov 28, 2007
Posts: 16
Please explain the difference between these two xmls?. What is the purpose of orm.xml?.
Moayad Abu Jaber
Ranch Hand

Joined: Jan 15, 2008
Posts: 80
persistence.xml used to define the JDBC driver and connectivtey with database additional that you define the unit name.

orm.xml you can skipped it and use the annotation insted of that.
orm.xml used to mapping object to database.

best regards,


Best Regards,
Moayad Abu Jaber
SCJP 5.0, SCWCD 1.4, SCBCD 5.0
Fei Wong
Greenhorn

Joined: Jun 15, 2009
Posts: 11
hi juz wan to ask can we use other name like abc.xml instead of orm.xml?

Thanl you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: orm.xml and persistence.xml
 
Similar Threads
Why two xml files?
<entity-mappings> tag
orm.xml
Is EJB3.0 without annotation possible??
Problem in config. JPA in JBOSS