Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
By this point, you are well aware that if you don't want to use XML for mapping, you don't need to use XML. In fact, as you will see in Chapter 13, any number of mapping files, or none, might be included in a persistence unit. If you do use one, however, each mapping file that is supplied must conform and be valid against the orm_2_0.xsd schema located at http://java.sun.com/xml/ns/persistence/orm_2_0.xsd.
NOTE
When using a JPA 1.0 implementation, the schema will be orm_1_0.xsd, located at http://java.sun.com/xml/ns/persistence/orm_1_0.xsd.