[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-4358) Having to use @ForceDiscriminator kind of breaks JPA compatibility

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Aug 19 13:40:09 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole updated HHH-4358:
--------------------------------

    Suitable for new contributors: [Yes, likely]
                    Fix Version/s: 4.0.0.next
                         Assignee: Steve Ebersole
                           Labels: jpa2  (was: )

We are discussing whether not-forcing the discriminator actually violates the spec in any way as you suggest on the developer mailing list.  That is really the only way we are going to be able to justify reversing the default value here.  If you have a specific section you think is being violated please add it here or on that mailing list discussion.

> Having to use @ForceDiscriminator kind of breaks JPA compatibility
> ------------------------------------------------------------------
>
>                 Key: HHH-4358
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4358
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: annotations
>         Environment: JPA
>            Reporter: Steve Ebersole
>            Assignee: Steve Ebersole
>              Labels: jpa2
>             Fix For: 4.0.0.next
>
>
> According to
> http://opensource.atlassian.com/projects/hibernate/browse/ANN-36
> @ForceDiscriminator was created as a quick workaround to a problem.
> Yes, it solves the problem, but it creates a new problem:
> the source code which previously had only JPA annotations, now need to be annotated by a Hibernate annotation,
> causing that the the source code is now unable to use just any JPA provider.
> Major portability issue!
> Everyone who likes Open Source, hates Lock-Ins!
> My proposal: change the default to a more sane force=true, so that @ForceDiscriminator will not be needed for general JPA projects.
> (And create a @DisableDiscriminator Hibernate annotation, for those who like to brake their code).
> If changing default behavior is risky, don't fix this on older versions, but lets change this from 3.5.0-Beta2.

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