IntelliJ Java IDE
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes orm.xml and persistence.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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
 
IntelliJ Java IDE
 
subject: orm.xml and persistence.xml
 
Threads others viewed
Why two xml files?
Is EJB3.0 without annotation possible??
<entity-mappings> tag
Problem in config. JPA in JBOSS
orm.xml
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture