Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Issues List »

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

Anupam M (JIRA)

2008-07-01


Author LoginPost Reply
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

   
_______________________________________________
hibernate-issues mailing list
hibernate-issues@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-issues
©2008 gg3721.com - Jax Systems, LLC, U.S.A.