This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes XSD for JPA 2.0 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 "XSD for JPA 2.0" Watch "XSD for JPA 2.0" New topic
Author

XSD for JPA 2.0

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Guys,

Where could I get the JPA 2.0 XSD definition?

http://java.sun.com/xml/ns/persistence/orm

The above link is what I use in my orm.xml but when looked for it in the browser, got a missing page from Oracle. Where the heck is this xsd?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

I'm developing a Spring based JPA application in which I have a couple of Entities that I would like to map using the XML configuration file rather than using Annotations. I get some exceptions during startup and it is primarily due to the invalid usage of a couple of tags. For this reason, I thought of looking at the XSD and to my surprise I was not able to find it in the link that I mentioned above. Any ideas?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9957
    
163

It's here http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd

[My Blog] [JavaRanch Journal]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345
    
    2

Whiyh is considered as a good practice for Entity mapping (Annotations or XML)? In my application, my plan is to use the Entity POJO's also as a DTO object. In such a case, is it advisable to send this DTO object with full Annotations to be used in the UI layer?
 
 
subject: XSD for JPA 2.0
 
Similar Threads
How to retrieve all entities when I have a list of with all required objects PKs?
Generics with query.getResulList
queryHints for JPA 2.0
Specifications version for the JPA exam
A good Hibernate book or tutorial