[hibernate-dev] Entity name in the context of JPA2 meta model (HHH-5709).
tblachowicz at gmail.com
Tue Nov 2 08:50:53 EDT 2010
I've already created the ticket (
And I should be able to create the patch sometime this evening.
On Tue, Nov 2, 2010 at 12:24 PM, Emmanuel Bernard <emmanuel at hibernate.org>wrote:
> I'd say you're correct and the name should match in the metamodel.
> Can you open a JIRA issue and even better try and work out a patch?
> PS: I've spilled hot chocolate on my laptop in the past: not good, the
> machine slowly but inevitably dies as corrosion wins it over.
> On 2 nov. 2010, at 12:35, Tomasz Blachowicz wrote:
> > Hi,
> > I had been working recently on some stuff that deals with JPA2 meta
> > Hibernate is my JPA2 provider/engine. Everything works fine except one
> > little thing that is name of the Entity. I'd expect that value returned
> > EntityType.getName() would be the same as @Entity.name but not the FQN of
> > the entity class. Although this is not explicitly stated in the JPA2
> > specification it is reasonable to expect that @Entity.name or the default
> > value (shortened class name) is the name of the entity used in queries
> > well as other places such as meta model. I know the topic of entity name
> > discussed many times in the past (HHH-2597, HHH-4375, HHH-4465,
> > and the rationale has been given for current implementation of Hibernate,
> > however the topic hasn't been touched in the context of meta model that
> > new stuff added in JPA2.
> > I just wanted to know what is your thinking with regards to the matter at
> > this stage and how likely is implementation of Hibernate would change to
> > match EntityType.getName with @Entity.name.
> > P.S.
> > I just have spilled the entire cup of fresh coffee on my desktop while
> > writing this message. The mouse seems to be drowned :|
> > Cheers,
> > Tom
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
More information about the hibernate-dev