[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-4198) Parametrized type should be exported with it's parameters

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Fri Apr 17 10:08:22 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBIDE-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dmitry Geraskov updated JBIDE-4198:
-----------------------------------

    Description: 
When Enum type (and in some other situations) used in mapping exported doesn't exxport property's type with params. In this situation session factory cannot be built.

It does it in this way:
<property ... type="org.hibernate.type.EnumType">

but must does:

<property ... >
    <type name="org.hibernate.type.EnumType">
   		<param name="enumClass">com.jboss.dvd.seam.MyEnum</param>
               ...
     </type>
</property>

This is connected with JBIDE-4010, so step to reproduce from that issue:
EXECUTE: Import Seam DVD Store Example project
EXECUTE: Open Hibernate Configurations view
EXECUTE: Expand Session Factory
ASSERT: Expanded successfully w/o any exceptions. Classes with @Table annotations should be represented.
EXECUTE: Open Hibernate Code Generation Configurations and create New Configuration
EXECUTE: Select \dvdstore-ejb\ejbModule as Output directory
EXECUTE: Swith to Exporters and select Hibernate XML mappings and Hibernate XML Configuration
EXECUTE: Press Apply and Run button
EXECUTE: Open Hibernate Configurations view
EXECUTE: Edit configuration: Type: Core; Configuration file: \dvdstore-ejb\ejbModule\hibernate.cfg.xml; Property file: empty path. Press Ok button
EXECUTE: Rebuild configuration
ASSERT: Configuration should be rebuilded successfully.
EXECUTE: Expand Session Factory
FAULURE: Problems while creating sessionfactory:
Log attached.

  was:
When Enum type (and in some other situations) used in mapping exported doesn't exxport property's type with params. In this situation session factory cannot be built.

It does it in this way:
<property ... type="org.hibernate.type.EnumType">

but must does:

<property ... >
    <type name="org.hibernate.type.EnumType">
   		<param name="enumClass">com.jboss.dvd.seam.MyEnum</param>
               ...
     </type>
</property>



> Parametrized type should be exported with it's parameters
> ---------------------------------------------------------
>
>                 Key: JBIDE-4198
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-4198
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: Hibernate
>    Affects Versions: 3.1.0.M1
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.1.0.M1
>
>
> When Enum type (and in some other situations) used in mapping exported doesn't exxport property's type with params. In this situation session factory cannot be built.
> It does it in this way:
> <property ... type="org.hibernate.type.EnumType">
> but must does:
> <property ... >
>     <type name="org.hibernate.type.EnumType">
>    		<param name="enumClass">com.jboss.dvd.seam.MyEnum</param>
>                ...
>      </type>
> </property>
> This is connected with JBIDE-4010, so step to reproduce from that issue:
> EXECUTE: Import Seam DVD Store Example project
> EXECUTE: Open Hibernate Configurations view
> EXECUTE: Expand Session Factory
> ASSERT: Expanded successfully w/o any exceptions. Classes with @Table annotations should be represented.
> EXECUTE: Open Hibernate Code Generation Configurations and create New Configuration
> EXECUTE: Select \dvdstore-ejb\ejbModule as Output directory
> EXECUTE: Swith to Exporters and select Hibernate XML mappings and Hibernate XML Configuration
> EXECUTE: Press Apply and Run button
> EXECUTE: Open Hibernate Configurations view
> EXECUTE: Edit configuration: Type: Core; Configuration file: \dvdstore-ejb\ejbModule\hibernate.cfg.xml; Property file: empty path. Press Ok button
> EXECUTE: Rebuild configuration
> ASSERT: Configuration should be rebuilded successfully.
> EXECUTE: Expand Session Factory
> FAULURE: Problems while creating sessionfactory:
> Log attached.

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