[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-267) hbm2java does not handle <properties> tag correctly
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Mon Jun 11 09:26:04 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen closed HBX-267.
-----------------------------------
Resolution: Fixed
about time we got this one fixed .... committed to svn (with more tests, but otherwise the same)
p.s. use unified diff in the future - thanks ;)
> hbm2java does not handle <properties> tag correctly
> ---------------------------------------------------
>
> Key: HBX-267
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-267
> Project: Hibernate Tools
> Issue Type: Patch
> Components: hbm2java
> Affects Versions: 3.0alpha
> Environment: Hibernate Tools from CVS
> Reporter: Jason Boutwell
> Fix For: 3.2beta10
>
> Attachments: failingtest.zip, patch.txt, patch.txt, PropertiesUsage.java
>
>
> If an hbm <class> mapping contains a <properties> tag, hbm2java creates a POJO that contains only the child properties of the <properties> logical element. All other elements in the class mapping are discarded. I've looked at the source code, and, while not intimate with it, I speculate that hbm2java is treating <properties> like <component> and overwriting the actual entity POJO with a component POJO. Is this a bug, or is the <properties> tag explicitly not yet supported?
--
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