Is null or is not null ? That is the question

by Giuseppe Contartese :: Rate this Message:

Reply to Author | View in Thread

Hi,
looking and testing  SearchInfo functionality I noted with regred that  there wasn't possibility to 
filter using (i thinkg the most popular ) restricion  "is null" or "is not null".
I don't want  ,for sure, to replace everywhere the power of Hibernate Criteria but..
As smartweb user I would like to have this functionality..I report a simple test case :
Suppose i have a list of bean Contract with a "expirationDate" property that determ expiration time ...it can become really simple to filter them 
and know all expired :
info.addFilterRestriction("dateEnd",SearchInfo.IS_NOT_NULL) !

As smartweb developer I can provide their implementation and test..on BusinessObjectFactory and SearchInfo classes..

What do u think about it ?
--
Giuseppe Contartese
mail: gcontartese@...
mobile: +393939064135
Smartlab s.r.l. via E.Q. Visconti, 103 00192 Roma
Tel. +39067886641 Fax: +391782233798

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
smartweb-user mailing list
smartweb-user@...
https://lists.sourceforge.net/lists/listinfo/smartweb-user