[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6057) hibernate.cfg.xml references wrong hbm.xml files and doesn't include reference to DTD file
Brian Lavender (JIRA)
noreply at atlassian.com
Sun Mar 27 03:48:08 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41863#action_41863 ]
Brian Lavender commented on HHH-6057:
-------------------------------------
Not a major bug. I accidentally put it as 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
>
> 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