[hibernate-issues] [Hibernate-JIRA] Created: (ANN-862) Having to use @ForceDiscriminator kind of breaks JPA compatibility

Albert Kurucz (JIRA) noreply at atlassian.com
Thu Aug 27 10:42:15 EDT 2009


Having to use @ForceDiscriminator kind of breaks JPA compatibility
------------------------------------------------------------------

                 Key: ANN-862
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-862
             Project: Hibernate Annotations
          Issue Type: Improvement
    Affects Versions: 3.4.0.GA, 3.5, JPA 2.0
         Environment: JPA
            Reporter: Albert Kurucz


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