I am using oracle and hibernate for mapping. I want to count with a condition in count() function. my co开发者_如何学Pythonde is:
I have a problem writing HQL. The problem is that I want something like this to be transferred to HQL select
How sh开发者_运维问答ould I go about setting up HQL condition that would select all the object who\'s date property is older than 3 hours from now. This should work.
I have 2 classes: ClassRoom, Student Cl开发者_开发百科ass Student { private Integer id; private ClassRoom classRoom;
Given the following: A Company has a collection of Product objects. An Area has a collection of Product objects.
Is it possible to get HQL results with dot. for example: select Employee.name as \'Employee.name\' I know that mysql allows that, is there any support fir that in hibernate.
I\'m trying to make the following hql query work, but with no success. I\'m trying to find out what rank has a specific user, dependent on a field value in a form. In SQL this works great.
It is possible with a HQL query to retrieve every fields EXCEPT one. Something like : session.get(entityClass, id).withoutThisField(fieldNotDesired)
I try to do the following: hibQuery.SetParameter(\"MyParameter\", valueObject, valueType); The only problem is that this method expects NHibernate.Type.IType in the third parameter, but valueType i
i\'m a little bit stuck with that question. Let\'s say I have a domain class: class Activity { String activityID