hql
returning Map in HQL
I was going through hibenate documentation and found that it is possible to return map from HQL by using code:[详细]
2023-03-25 08:45 分类:问答Simple HQL/sql query..need assistance?
I have 2 tables (entity) a person entity and a vacation entity. One person can have many vacations. What I\'m trying to do is the following query:[详细]
2023-03-24 23:05 分类:问答hibernate HQL date difference
I want to find all records which maps to object XYZ with following conditions A has date field XyzDateTime (its a time stamp)[详细]
2023-03-24 21:30 分类:问答NHibernate returning duplicate rows from hql named query with object constructors
I have a named hql query which makes use of object constructors for an object that is not mapped (it is only imported)[详细]
2023-03-24 14:37 分类:问答HQL query ignoring accents
I\'ve the following query: select u from User u where upper(u.name) like upper(?1) How this would be, but ignoring the accents in u.n开发者_如何学Pythoname and ?1?I have found a way to implement this[详细]
2023-03-23 09:48 分类:问答Return TSubType from nhibernate QueryOver
I am trying to select the children from a parent collection using QueryOver in nhibernate. This is what I am trying to do in HQL:[详细]
2023-03-21 23:16 分类:问答Compare items in an existing list based on property in HQL
Let say I have two class: public class A{ public virtual int Id; ...开发者_运维问答 ... } public class B{[详细]
2023-03-21 15:00 分类:问答Hibernate criteria: how to order by two columns concatenated?
I have a Person table which has two columns: first_name and last_name. The Person class has two corresponding fields: firstName and lastName. Now I\'m using criteria api and trying to create an order[详细]
2023-03-21 05:35 分类:问答Hibernate data retrieve improvement. [duplicate]
This question already has an answer here: Closed 10 years ago. Possible Duplicate: Can I eager lo开发者_运维技巧ad a property using HQL?[详细]
2023-03-21 02:15 分类:问答HQL distinct set
I have an entity that contains a set of other entities. class Foo { .... private Set<Bar> bars = new HashSet<Bar>();[详细]
2023-03-20 18:15 分类:问答