[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-420) cfg2hbm produces invalid documents w/ inheritance
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Fri Sep 15 09:15:25 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-420?page=all ]
Max Rydahl Andersen closed HBX-420:
-----------------------------------
Fix Version: 3.2beta8
Resolution: Fixed
assumed fixed due to another bug that implemented basic subclass support
> cfg2hbm produces invalid documents w/ inheritance
> -------------------------------------------------
>
> Key: HBX-420
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-420
> Project: Hibernate Tools
> Type: Improvement
> Components: reverse-engineer
> Versions: 3.2LATER
> Environment: Eclipse 3.1, co build of HibernateExt from oct 1, 2005.
> Reporter: Dennis C. Byrne
> Priority: Minor
> Fix For: 3.2beta8
> Attachments: BuyNow.hbm.xml
>
>
> Use cases w/ subclass do not work with hbm2CfgXml and cfg2hbm .
> Example, the CE model ; using ant, I want to generate a working domain model from the mapping files. The end results should be:
> 1.)hibernate.cfg.xml
> 2.) *.hbm.xml
> The configuration element is used w/ nested fileset element. The nested fileset element uses an include to scoop up all *.hbm.xml files.
> There are two ways to satisfy the last requirement. Use a <cfg2hbm> or <copy>. The first of these options will take Bid.hbm.xml, and produce two files, Bid.hbm.xml and BidNow.hbm.xml . BidNow.hbm.xml will not be valid against the DTD because there is a table attribute in a subclass element. No big deal, why do we need to generate documents we already have? So use <copy>, it's not as though we are using the annotationconfiguration element. Using copy however means that you will have to manually edit hibernate.cfg.xml, because it will be generated w/ a mapping element for both Bid.hbm.xml and BidNow.hbm.xml .
> An invalid table attribute should not be produced for generated subclass elements.
--
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