[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-4948) DDL generator doesn't take into account discriminator column when xml-mapping used.
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Tue Oct 13 10:11:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-4948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Geraskov resolved JBIDE-4948.
------------------------------------
Resolution: Cannot Reproduce Bug
Seems like I generated ddl using one console configuration and changed another one.
> 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