From: Manuel G. (JIRA) <no...@at...> - 2006-08-02 14:10:13
|
Annotation Configuration Error ------------------------------ 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 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 |
From: Max R. A. (JIRA) <no...@at...> - 2006-08-02 14:17:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-720?page=comments#action_23820 ] Max Rydahl Andersen commented on HBX-720: ----------------------------------------- what kind of code generation are you choosing ? do you have reverse engineering enabled ? did you remember to choose the right console configuration ? > Annotation Configuration Error > ------------------------------ > > 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 > > > 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 |