[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1832) Exception appeares while trying to expand newly created Hibernate configuration in Hibernate Configurations View
Max Andersen (JIRA)
jira-events at lists.jboss.org
Tue Mar 4 09:42:11 EST 2008
[ http://jira.jboss.com/jira/browse/JBIDE-1832?page=comments#action_12401240 ]
Max Andersen commented on JBIDE-1832:
-------------------------------------
The model we are currently using is hibernate it self...not a design time model that can handle all arbitrary errors.
Hibernate tools is reacting as currently is expected behavior: Report what are the actual cause why it cannot continue (either missing file, missing mapping or other errors)
I'm going to close this one since it is basically a duplicate of wanting to have a design time tolerant hibernate model for *some* parts of hibernate/jpa functionallity (e.g. query execution will always require a full working hibernate to query)
> Exception appeares while trying to expand newly created Hibernate configuration in Hibernate Configurations View
> ----------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-1832
> URL: http://jira.jboss.com/jira/browse/JBIDE-1832
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: Hibernate
> Affects Versions: 2.0.1
> Reporter: Anton Klimkovich
> Assigned To: Anton Klimkovich
> Attachments: exception.txt
>
>
> EXECUTE: Create JSF KickStart project
> EXECUTE: Create Hibernate XML Mapping file(hbm.xml)
> EXECUTE: Type in mapping file :
> <class name="demo.User">
> <id/>
> <property name="name" type="string">
> <column name="registration"/>
> </property>
> </class>
> EXECUTE: Create Hibernate Configuration file(cfg.xml)
> EXECUTE: Type in cfg.xml
> <session-factory name="Registration">
> <property name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property>
> <property name="hibernate.connection.url">jdbc:hsqldb:hsql://localhost</property>
> <property name="hibernate.connection.username">sa</property>
> <property name="hibernate.dialect">org.hibernate.dialect.HSQLDialect</property>
> <mapping file=" {Path to hbm.xml} "/>
> </session-factory>
> EXECUTE: Open Hibernate Configurations View
> EXECUTE: From context menu select Add configuration..
> EXECUTE: In field Project select your JSF project
> EXECUTE: In field Configuration file select your created cfg.xml
> ASSERT: New Hibernate configuration appeares in Hibernate Configurations View
> EXECUTE: Expand new Hibernate configuration
> FAILURE: org.hibernate.MappingNotFoundException: file: \NewMapping.hbm.xml not found
> Log attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list