[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-303?page=all ]
James Olsen updated ANN-303:
----------------------------
Attachment: ANN-303-patch.txt
Hibernate seems to be handling the Entity.name fine if entity-name is in the hbm.xml
(I'm not currently using the annotations directly at runtime but using them to
generate mapping files) it's just that it doesn't get into the meta-model from the
annotations. This looks like a fault in the EntityBinder to me, as per the attached file.
(Sorry it isn't a proper patch, I'm working in a scratch area for various
reasons). Making that first change raised a second issue with the
HibernateMappingExporter regarding the file name used for generated files. The attachment
includes a change for that also.
With these two small mods I'm happily using the Entity.name rather than ClassName for
queries.
Consider implementing @Entity(name=) through entityName
-------------------------------------------------------
Key: ANN-303
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-303
Project: Hibernate Annotations
Type: Improvement
Components: binder
Reporter: Emmanuel Bernard
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira