[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3368) Filter definition parameter type doesn't allow custom types

Peter Oxenham (JIRA) noreply at atlassian.com
Tue Jul 1 03:06:33 EDT 2008


Filter definition parameter type doesn't allow custom types
-----------------------------------------------------------

                 Key: HHH-3368
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3368
             Project: Hibernate3
          Issue Type: Patch
          Components: core
    Affects Versions: 3.3.0.CR1, 3.2.2
            Reporter: Peter Oxenham
            Priority: Minor
         Attachments: filter-def.patch

Creating a <filter-def/> that has a <filter-param/> with the type attribute set to a custom type fails to correctly define the filter parameter.

i.e.
<hibernate-mapping>
	<typedef name="myCustomType" class="com.type.MyCustomType">
		<param name="myParam">myValue</param>
	</typedef>
    <class name="com.models.Category" table="category" schema="public">
	...
    </class>
	<filter-def name="categoryTypeFilter" >
		<filter-param name="types" type="myCustomType"/>
	</filter-def>
</hibernate-mapping>

I have attached a patch file that was my attempt to fix the problem.


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

        



More information about the hibernate-issues mailing list