How to fetch liferay entity through custom-finder in custom plugin portlet?
问题 How can we fetch liferay entities through custom-finder using custom SQL? Following is my sql query written in default.xml ( I have trimmed down the query to the bare minimum so that the logic remains simple. Since it included a few functions and joins we couldn't use DynamicQuery API ): SELECT grp.* FROM Group_ WHERE site = 1 AND active_ = 1 AND type_ <> 3 Relevant code in MyCustomGroupFinderImpl.java : Session session = null; try { session = openSession(); // fetches the query string from