From: Max R. A. (JIRA) <no...@at...> - 2006-06-13 06:47:39
|
imports are not done for the full entityname -------------------------------------------- Key: ANN-373 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-373 Project: Hibernate Annotations Type: Improvement Components: binder Reporter: Max Rydahl Andersen Priority: Minor hbmbinder adds both the simple and fully qualified name into imports. annotationbinder does not. e.g. org.jbossworld.Patient should be added as both "Patient" and "org.jbossworld.Patient" to be aligned with hbmbinder. hql code completion assumes this. workaround is to do two looksup instead, one in imports and if that return null do a lookup directly in classmappings -- 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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-13 14:31:36
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-373?page=comments#action_23327 ] Emmanuel Bernard commented on ANN-373: -------------------------------------- Annotations register a entity class so that the fqcn or the entity name can be used in a query. I've some working tests. What specifically fails? note that the entity name is @Entity(name) which default to the uqcn > imports are not done for the full entityname > -------------------------------------------- > > Key: ANN-373 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-373 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Reporter: Max Rydahl Andersen > Priority: Minor > > > hbmbinder adds both the simple and fully qualified name into imports. > annotationbinder does not. > e.g. > org.jbossworld.Patient should be added as both "Patient" and "org.jbossworld.Patient" to be aligned with hbmbinder. > hql code completion assumes this. > workaround is to do two looksup instead, one in imports and if that return null do a lookup directly in classmappings -- 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 |
From: Max R. A. (JIRA) <no...@at...> - 2006-06-13 19:34:41
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-373?page=comments#action_23331 ] Max Rydahl Andersen commented on ANN-373: ----------------------------------------- getImports().get("Patient") returns "org.jbossworld.Patient" getImports().get("org.jbossworld.Patient") returns null (it should also return "org.jbossworld.Patient" to be equal to what hbmbinder provides. > imports are not done for the full entityname > -------------------------------------------- > > Key: ANN-373 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-373 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Reporter: Max Rydahl Andersen > Priority: Minor > > > hbmbinder adds both the simple and fully qualified name into imports. > annotationbinder does not. > e.g. > org.jbossworld.Patient should be added as both "Patient" and "org.jbossworld.Patient" to be aligned with hbmbinder. > hql code completion assumes this. > workaround is to do two looksup instead, one in imports and if that return null do a lookup directly in classmappings -- 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 |
[Hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-373) imports are
not done for the full entityname
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-14 00:32:33
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-373?page=all ] Emmanuel Bernard resolved ANN-373: ---------------------------------- Fix Version: 3.2.0 Resolution: Fixed Assign To: Emmanuel Bernard > imports are not done for the full entityname > -------------------------------------------- > > Key: ANN-373 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-373 > Project: Hibernate Annotations > Type: Improvement > Components: binder > Reporter: Max Rydahl Andersen > Assignee: Emmanuel Bernard > Priority: Minor > Fix For: 3.2.0 > > > hbmbinder adds both the simple and fully qualified name into imports. > annotationbinder does not. > e.g. > org.jbossworld.Patient should be added as both "Patient" and "org.jbossworld.Patient" to be aligned with hbmbinder. > hql code completion assumes this. > workaround is to do two looksup instead, one in imports and if that return null do a lookup directly in classmappings -- 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 |