[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-4948) DDL generator doesn't take into account discriminator column when xml-mapping used.

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Fri Sep 25 07:44:49 EDT 2009


DDL generator doesn't take into account discriminator column when xml-mapping used.
-----------------------------------------------------------------------------------

                 Key: JBIDE-4948
                 URL: https://jira.jboss.org/jira/browse/JBIDE-4948
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Hibernate
    Affects Versions: 3.1.0.M4
            Reporter: Dmitry Geraskov
            Assignee: Dmitry Geraskov
             Fix For: 3.1.0.M4


I've mapped superclass for table-per-hierarchy mapping as(in orm.xml):
<entity class="tph.TablePerHierarhy_Top">
	<inheritance strategy="SINGLE_TABLE" />
	<discriminator-column name="vvv"
		discriminator-type="STRING" />
	<attributes>
		<id name="tph_Id"/>
		<basic name="tph_DataTop"></basic>
	</attributes>
</entity>
But generated ddl is:

    create table TablePerHierarhyTop (
        DTYPE varchar(31) not null,  -- ERROR
        tphId int4 not null,
        tphDataTop varchar(255),
...
    );

This error does not appear when annotations used.
This could be a problem in Hibernate configuration building process.

-- 
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