Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
smruti rekha swain
How to use and operator in dynamic query?
September 26, 2012 4:02 AM
Answer

smruti rekha swain

Rank: New Member

Posts: 4

Join Date: March 12, 2012

Recent Posts

I want to convert it into dynamic query with the help of and operator

select *
from Group_
where (type = 1 and type = 2)

Thanks & Regards

smruti rekha swain
Harish Kumar
RE: How to use and operator in dynamic query?
September 26, 2012 4:47 AM
Answer

Harish Kumar

Rank: Expert

Posts: 472

Join Date: July 31, 2010

Recent Posts

Hi Smruti

You can make use of RestrictionsFactoryUtil.and(lhs, rhs) method to implement and operator
Sujeet Kumar
RE: How to use and operator in dynamic query?
September 26, 2012 5:05 AM
Answer

Sujeet Kumar

Rank: New Member

Posts: 24

Join Date: November 2, 2011

Recent Posts

Harish Kumar:
Hi Smruti

You can make use of RestrictionsFactoryUtil.and(lhs, rhs) method to implement and operator


Hi Harish,

I m facing the same problem can you tell me how to implement the same query given by smruti ... as per your suggestion

Thanks in advance
Sujeet