[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5190) Provide annotation support for <discriminator>'s force insert and type features

Hardy Ferentschik (JIRA) noreply at atlassian.com
Tue Sep 28 13:21:57 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38531#action_38531 ] 

Hardy Ferentschik commented on HHH-5190:
----------------------------------------

Is the type not handled via {{DiscriminatorType}}? Admittedly, the values of {{DiscriminatorType}} are limited to string, char and int, wheras Hibernate also allows byte, short and boolean. However, is it really necessary to add potential confusion adding another Hibernate specific annotation? Would an exception be thrown if the {{DiscriminatorType}} of {{DiscriminatorColumn}} is not matching the value of the custom annotation?

Any suggestions for the annotation name for the _force_ option? Just {{@ForceDiscriminator}}?

> Provide annotation support for <discriminator>'s force insert and type features
> -------------------------------------------------------------------------------
>
>                 Key: HHH-5190
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5190
>             Project: Hibernate Core
>          Issue Type: New Feature
>          Components: annotations
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>             Fix For: 3.6.x
>
>


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