Joined: Thu Jun 14, 2007 2:34 am Posts: 6
|
Hello,
Is it possible to use a custom type in the declaration of a data filter parameter like you can in the declaration of a property type in a mapping file for a class?
(Custom Type in a mapping file declaration)
<property name="attributename" column="COLUMN_NAME"
type="customType"/>
(Custom Type in a data filter declaration. [b]Can you do this?[/b])
<filter-def name="filterName">
<filter-param name="filterParameter" type="customType"/>
</filter-def>
In my situation the custom type is an enum and is defined using the hibernate "Custom mapping type for String-backed enumerations" as detailed in the "Java Persistence With Hibernate" book.
Any help would be greatly appreciated.
|
|