[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6057?page=c...
]
Strong Liu resolved HHH-6057.
-----------------------------
Assignee: Strong Liu
Resolution: Fixed
Fix Version/s: 4.0.0.Alpha2
thanks reporting this, and for the dtd issue, i would not add it, as you said, it already
be pointed out
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
Assignee: Strong Liu
Fix For: 3.6.3, 4.0.0.Alpha2
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira