[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-720) Annotation Configuration not used when generating code

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Fri Sep 15 05:21:27 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-720?page=all ]
     
Max Rydahl Andersen closed HBX-720:
-----------------------------------

    Fix Version: 3.2beta8
     Resolution: Fixed

stupid bug - incredible noone else reported it ...guess annotations guys don't like codegeneration ;)

> Annotation Configuration not used when generating code
> ------------------------------------------------------
>
>          Key: HBX-720
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-720
>      Project: Hibernate Tools
>         Type: Bug

>   Components: reverse-engineer
>     Versions: 3.2beta6
>     Reporter: Manuel Gentile
>      Fix For: 3.2beta8

>
>
> I have the following annotation configuration
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE hibernate-configuration PUBLIC
> 		"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
> 		"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
> <hibernate-configuration>
>     <session-factory>
>         <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
>         <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost</property>
>         <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
>         <property name="hbm2ddl.auto">create</property>
>         
>         <mapping class="..."/>
>         <mapping class="..."/>
>    ...
>     </session-factory>
> </hibernate-configuration>
> In Hibernate Console Configuration if i disable the enable annotation checkbox and I try to see the classes in the hibernate configurations section I obtaion the followinf error
>         org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is right!!!)
> If i enable the enable annotation checkbox, I can see the classes and the configuration in the right way 
> but when I try to run code generation  I receive 
>         org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/> (and i think this is NOT right!!!)

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