I am doing search with Pagination in groovy For the sake of pagination in different pages, I put a count filter "where". I want to get colName here dy ...
I am doing search with Pagination in groovy For the sake of pagination in different pages, I put a count filter "where". I want to get colName here dy ...
if i added a restriction to criteria using CreateCriteria() function. does the Restriction will be saved in the database? Advance Thanks!.. ...
I'm trying to perform a filter on a group of objects based on a "State" criteria. If the State filter in the OR is included in the cide it only get ...
How can I read only the lastChild along with parentObject here is my code But not working. How can I read Parent with last updated child ...
I am implementing DAO in Spring-5, Maven Project with Hibernate 5, for getting list with offset and maxcount with the help of sessionFactory.getCurren ...
I have been developing with: Where: From this Question about alternatives to createCriteria(), I have created a method to get lists: But I st ...
I have sql query like below select transf, count(fname) from peak_info where fname in (select peakfile from pe_result where conid = 'GO:000 ...
I am trying to create a list of companies which appear in either of 2 other lists. I can manage to create a list of companies appearing in 1 other lis ...
I have some grails Domain classes that have relationships between them like so... How can I use withCriteria to perform eager fetching on A such th ...
I am working to fetch the minimum value from a table in Grails where the vehicleid and the type is given there are many values associated from that v ...
I am using Criteria and I want to explicitly tell hibernate to join on specific columns rather than the primary and foreign key columns. My code is ...
I need a help to migrate the code with createCriteria for Hibernate 5, the code is this below: Could you help me? ...
I am looking at upgrading my hibernate to use JPA criteriaQuery :-( and need to find a way to implement an alias in JPA eg: I have been through the ...
I have a dummy cafeteria project wherein I have three domain classes: User, Product and Transaction. Here's how the classes are defined: Now I wan ...
I'm knew to hibernate. I have a sql statement I tried to implement it with createCriteria and HQL. HQL: The problem is that this HQL takes 10 ...
Registration domain has a collection of discounts. I want to extract all Registrations that have a particular discount applied. In the following ...
The above code is returning me all the objects of the table. But when I am trying to filter it like, I am getting null values : (or) What I e ...
My Employee domain has an associated division, department, and position, which are all domains themselves. This relationship is coded as (note that ...
I'm using the following criteria to retrieve all Person objects that have certain roles granted (in the PersonService): I now have the problem that ...
Domain Class: Code: Question: Obviously this doesn't work, but I need to know if there is a way to order by date + days using createCriteria. ...