I have a query for mysql where ifnull() is used.i want to convert it into ejb-ql. Problem here is that i dont find any substitute equivalent to ifnull ...
I have a query for mysql where ifnull() is used.i want to convert it into ejb-ql. Problem here is that i dont find any substitute equivalent to ifnull ...
I try to do this query : I fails, query generated for the WHERE clause is : What am I missing ? Is it possible to do what I whant to do ? Thanks ...
I am trying to retrieve all the entity from the TransactionE t entity where the month of t.purchasedDate is equal to the current month. However, I e ...
I have this query SELECT acc.Id FROM Auth as auth, AccId as acc WHERE acc.ownId.Id = auth.Id AND acc.disabled = 0 Which appears to have be ...
I have the following namedquery over my entity "Intervention ": i dont know how to call this query in my code by passing two parameters : date,id. ...
I have the following classes (simplified for clarity): The following EJBQL query successfully retrieves all instance of Top with their sub-objects ...
I am trying to achieve dateadd in my EJB query. I tried something like this but it doesn't work: Once I tried executing that code, this exception c ...
The sql query is: DELIVERYID in oracle is a number and deliveryid in JPA is a Long. any suggestion? ...
I'm developing a web application for advertising real estates. On the search page i'd like to show some random advertisements, but so far I've had no ...
We have been facing an issue, where a simple ejb-ql query runs out of transaction time, if same(WL generated SQL version of ejb-ql) is run from SQL co ...
I'm trying to make sure the following is supported with the EJBQL capabilities in hibernate 3.2.1, but my google-fu has failed me. All I found was tha ...
I got a Entity with a Integer Now I want to cast this Integer in a query to compare it with an other value. I tried this Query: But it doesn't ...
I have objects: person.hbm look like this: now i try to get all the AnsMsg list that fromPerson=6 and all AnsMsg that parent_id=3; how my query ...
I know there must be a simple way to do this, but it's not coming to me at the moment. I've got a simple entity like (irrelevant parts removed for bre ...
Is there a simple way to merge a existing ejbql query with a existing CriteriaBuilder object? I have on the one side a jasper report with ejbql query ...
What's the equivalent JQPL statement of the following SQL statement: ...
Just a quick one. If I'm using an EJBQL query with named parameters, can I use the same parameter name twice in a single query to avoid having to set ...
In EJB query, it's recommended to use setParameters() instead of concatenating string parameters in order to avoid SQL injection attack. My question ...
I've just inherited some code that uses HibernateEntityQuery and EJBQL restrictions. There's an "activity" table/entity with various fields, and the ...
I'm trying to get the following query to work in Hibernate: The problem is, it seems to always evaluate the part that goes: ...as: In other w ...