[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-4375) Consider implementing @Entity(name=) through entityName

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Nov 3 10:23:50 EDT 2010


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

Steve Ebersole closed HHH-4375.
-------------------------------

    Resolution: Rejected

This is absolutely not a solution.  As pointed out, @Entity(name="...") is not at all related to Hibernate's notion of entity name which is part of its entity-mode support.  No, @Entity(name="...") is more closely related to query import names.  Look at the docs for @Entity:
{code}
	/**
	 * (Optional) The entity name. Defaults to the unqualified
	 * name of the entity class. This name is used to refer to the
	 * entity in queries. The name must not be a reserved literal
	 * in the Java Persistence query language.
	 */
	String name() default "";
{code}

The important bit is "This name is used to refer to the entity in queries" which exactly describes Hibernate import names.

> Consider implementing @Entity(name=) through entityName
> -------------------------------------------------------
>
>                 Key: HHH-4375
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4375
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: annotations
>            Reporter: Steve Ebersole
>            Priority: Minor
>         Attachments: ANN-303-patch.txt
>
>
> I'm doubtful but this might be a solution
> http://jroller.com/page/MikeSlattery?entry=workaround_for_entity_name_alias

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