[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-3914) Cfg2HbmTool.needsTable() method returns true for Subclass object

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Mon May 18 08:49:05 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBIDE-3914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen resolved JBIDE-3914.
----------------------------------------

    Resolution: Done


Fixed but by using the PersistentClassVisitor instead of instanceof/== logic.

Note: I don't know when you will ever see an instance of Subclass anywhere so this is a more a cleanup fix than actually fixing any known issue.

> Cfg2HbmTool.needsTable() method returns true for Subclass object
> ----------------------------------------------------------------
>
>                 Key: JBIDE-3914
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3914
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: Hibernate
>    Affects Versions: 3.0.0.CR2
>            Reporter: Dmitry Geraskov
>            Assignee: Max Rydahl Andersen
>            Priority: Minor
>             Fix For: 3.1.0.M1
>
>         Attachments: table_attribute.patch.txt
>
>
> <subclass> element in hibernate mapping must not contain "table" attrinbute.
> Subclass and SingleTableSubclass objects is exported as <subclass>. This means that method Cfg2HbmTool.needsTable(PersistentClass) must return false for  Subclass and SingleTableSubclass objects.
> Now it returns *false* only for SingleTableSubclass .

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list