[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4358?page=c...
]
Karsten Wutzke edited comment on HHH-4358 at 12/19/11 7:50 PM:
---------------------------------------------------------------
I admit I have no idea how I thought this bug might be the place to discuss my problem,
but instead of making fun of me please have a look at my posting in the forum (which is,
as ever so often, unanswered) before I go ahead and report a bug that isn't one at
all:
https://forum.hibernate.org/viewtopic.php?f=1&t=1013221
Thanks
was (Author: kwutzke):
I admit I have no idea how I thought this bug might be the place to discuss my
problem, but instead of making fun of me please have a look at my posting in the forum
(which is, as ever so often, unanswered) before I go ahead and report something that
isn't supposed to be a bug:
https://forum.hibernate.org/viewtopic.php?f=1&t=1013221
Thanks
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.1
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