Originally posted by Mirko Bonasorte:
According to you, it is an error of the book or an Hibernate bug?
I wouldn't call it a bug in Hibernate. Looks like the book missed out on that definition. Hibernate
does make a mention about adding the schema declaration for persistence.xml (i would consider, it holds true for orm.xml too):
Be sure to define the grammar definition in the persistence element since the EJB3 specification requires the schema validation
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
[ October 30, 2007: Message edited by: Jaikiran Pai ]