[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4300) Composite Key which contains a discriminator causes "Repeated Column" errors
Jason Ferguson (JIRA)
noreply at atlassian.com
Mon May 14 08:36:09 EDT 2012
[ https://hibernate.onjira.com/browse/HHH-4300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46646#comment-46646 ]
Jason Ferguson commented on HHH-4300:
-------------------------------------
Using @DiscriminatorOptions(force=true, insert=false) on the base class seemed to work (and pass my unit tests). It may be that this issue was overlooked and not closed, in which case I apologize to the dev team (although attempting to aggravate them into acknowledging a 2-year old open issue may have been a good thing).
> Composite Key which contains a discriminator causes "Repeated Column" errors
> ----------------------------------------------------------------------------
>
> Key: HHH-4300
> URL: https://hibernate.onjira.com/browse/HHH-4300
> Project: Hibernate ORM
> Issue Type: Bug
> Components: annotations
> Environment: Hibernate version: 3.3.1 GA
> Application Server: Glassfish V3 Prelude
> Database: Oracle 9i
> Reporter: Pasi Orovuo
> Attachments: ItemInfo.zip
>
>
> See this forum post for background:
> http://forum.hibernate.org/viewtopic.php?t=995693
> Annotations does not seem to have a possibility to define "insert = false" on a discriminator column, as mentioned in the following bug:
> http://opensource.atlassian.com/projects/hibernate/browse/HB-1149
> Sources of classes that demonstrate the problem in above forum case attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list