[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6057) hibernate.cfg.xml references wrong hbm.xml files and doesn't include reference to DTD file
Strong Liu (JIRA)
noreply at atlassian.com
Wed Mar 30 07:01:08 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Strong Liu updated HHH-6057:
----------------------------
Priority: Trivial (was: Major)
> 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
> Priority: Trivial
> 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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list