[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-4198) Parametrized type should be exported with it's parameters
Max Rydahl Andersen (JIRA)
jira-events at lists.jboss.org
Tue May 19 07:59:05 EDT 2009
[ https://jira.jboss.org/jira/browse/JBIDE-4198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen resolved JBIDE-4198.
----------------------------------------
Resolution: Done
resolved, but added checks so <type> is only added if needed and otherwise it just uses type attribute.
> 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: Max Rydahl Andersen
> Fix For: 3.1.0.M1
>
> Attachments: patch.txt
>
>
> 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