Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Deployment Descriptor  RSS feed

 
Anupam Kataki
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
I wanted to know if it is possible to have comples conditions in the finder methods listed in a DD (I am Using Weblogic). For example
Complex Condition
==================
(finderDescriptors
"findByName(String name,String sname)" "(= name $name , =sname $sname)"
); end finderDescriptors
ANK
 
Tim Holloway
Bartender
Posts: 18705
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that "comples" meant "complex" (not that I type so hot myself!). For that, the answer is "YES!". The WebLogic Query Language is a LISP-like language, so querries are done with lots of parentheses:
(& (= $0 123) (>= $1 456) )
I never really got into WLS EJB 1.0 stuff, so I can't tell if your sample query is otherwise well-formed, but this is how you'd do it for EJB1.1 (WLS 5.1 and later).
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!