[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-406) @Embedded can not be used with Generics

Emmanuel Bernard (JIRA) noreply at atlassian.com
Fri Aug 25 17:00:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-406?page=all ]
     
Emmanuel Bernard resolved ANN-406:
----------------------------------

    Resolution: Rejected

no test case provided

> @Embedded can not be used with Generics
> ---------------------------------------
>
>          Key: ANN-406
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-406
>      Project: Hibernate Annotations
>         Type: Bug

>     Versions: 3.2.0.cr1
>  Environment: Hibernate 3.1.2 Oracle 10g
>     Reporter: Michael Kantarovich
>     Priority: Critical

>
>
> The following:
> @Embedded
> MyClass<MyGeneric> getMyClass(){ 
>     return myClass; 
> } 
> will result and exception:
> java.lang.IllegalStateException: Property myClass has an unbound type and no explicit target entity.
> 	at org.hibernate.cfg.AnnotationBinder.addElementsOfAClass(AnnotationBinder.java:938)
> 	at org.hibernate.cfg.AnnotationBinder.getElementsToProcess(AnnotationBinder.java:788)
> 	at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:614)
> 	at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:353)
> 	at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:265)
> 	at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034)
> 	at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:56)
> 	at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:226)
> 	at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45)
> 	at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:160)
> 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> 	at org.apache.tools.ant.Task.perform(Task.java:364)
> 	at org.apache.tools.ant.Target.execute(Target.java:341)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:369)
> 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
> 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
> 	at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:668)
> 	at org.apache.tools.ant.Main.startAnt(Main.java:187)
> 	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
> 	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at com.intellij.rt.ant.execution.AntMain2.main(AntMain2.java:17)

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