]
Steve Ebersole updated HHH-6057:
--------------------------------
Fix Version/s: 3.6.3
hibernate.cfg.xml references wrong hbm.xml files and doesn't
include reference to DTD file
------------------------------------------------------------------------------------------
Key: HHH-6057
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6057
Project: Hibernate Core
Issue Type: Bug
Components: documentation
Affects Versions: 3.6.2
Environment: Documentation for any environment. Download for the 3.6.2 final
distribution .tar.gz or .zip file
documentation/manual/en-US
Reporter: Brian Lavender
Fix For: 3.6.3
In the following section of the documentation. It has the below problems.
1.2.1. Mapping the Person class
Person.hbm.xml should contain a reference to the dtd. I know it is implied from the
above, but seeing the errors, omitting such information confuses the reader as to what is
going on. At the top of Person.hbm.xml, I would add the dtd information:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
In the section that says:
Finally, add the new mapping to Hibernate's configuration:
<mapping resource="events/Event.hbm.xml"/>
<mapping resource="events/Person.hbm.xml"/>
It should be the following:
Finally, add the new mapping to Hibernate's configuration:
<mapping resource="org/hibernate/tutorial/domain/Event.hbm.xml"/>
<mapping resource="org/hibernate/tutorial/domain/Person.hbm.xml"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: