How to use ISNULL ( check_expression , replacement_value ) in querydsl

531 views
Skip to first unread message

Kevin Choi

unread,
Mar 15, 2013, 6:01:00 AM3/15/13
to quer...@googlegroups.com
There is a ISNULL ( check_expression , replacement_value ) function in MSSQL.  Are there any equivalent in querydsl? or should I write a customized express for this function?

Timo Westkämper

unread,
Mar 15, 2013, 6:10:26 AM3/15/13
to Querydsl on behalf of Kevin Choi
Hi.

Querydsl supports coalesce, which is a bit more general http://msdn.microsoft.com/en-us/library/ms190349.aspx

Like this

    expr1.coalesce(expr2)

Br,
Timo

On Fri, Mar 15, 2013 at 12:01 PM, Kevin Choi via Querydsl <querydsl+noreply-APn2wQcICHvSHV7...@googlegroups.com> wrote:
There is a ISNULL ( check_expression , replacement_value ) function in MSSQL.  Are there any equivalent in querydsl? or should I write a customized express for this function?

--
You received this message because you are subscribed to the Google Groups "Querydsl" group.
To unsubscribe from this group and stop receiving emails from it, send an email to querydsl+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Timo Westkämper
Mysema Oy
+358 (0)40 591 2172
www.mysema.com


Reply all
Reply to author
Forward
0 new messages