[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-4015) Edit Configuration - if configuration file hibernate.cfg.xml contains <mapping class="..."> and config type is "Core" - will result exception

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Wed Dec 2 09:45:30 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12497742#action_12497742 ] 

Vitali Yemialyanchyk commented on JBIDE-4015:
---------------------------------------------

I just collect "better error handling" issues. This could be a new issue - the idea is:
there is console configuration which has only db connection configured (no session factory, no entities),
it is rather resonable to make "Reverse engineer from JDBC Connection" checked by default if the user 
select such HibCC during codegen. I point this reference to forum topic to remide about troubles during first time use.

> Edit Configuration - if configuration file hibernate.cfg.xml contains <mapping class="..."> and config type is "Core" - will result exception
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-4015
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4015
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>    Affects Versions: 3.0.0.CR2
>            Reporter: Vitali Yemialyanchyk
>            Assignee: Vitali Yemialyanchyk
>            Priority: Minor
>             Fix For: LATER
>
>
> Exception:
> org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="..."/>
> An AnnotationConfiguration instance is required to use <mapping class="..."/>
> this is expected behavior - the user should select "Annotations" or "JPA"
> but it will be a nice feature if in the case hibernate.cfg.xml contains <mapping class="...">
> "Core" will become disabled or warning (or error) mesage be display.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list