-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Dynamic data filter using a custom filter parameter
PostPosted: Thu Jun 14, 2007 3:06 am 
Newbie

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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.