criteria-api
Hibernate Criteria API: count and group by with result in Map
The Car entity is mapped to a database table with 2 columns: ID and Color. CarDao has the following method:[详细]
2023-01-02 09:49 分类:问答NHibernate Query
Is it possible to get NHibernate to generate a query similar to the following with HQL or Criter开发者_运维知识库ia API?[详细]
2023-01-01 21:27 分类:问答Nhibernate join on a table twice
Consider the following Class structure... public class ListViewControl { public int SystemId {get; set;}[详细]
2022-12-31 08:37 分类:问答Can the same CriteriaBuilder (JPA 2) instance be used to create multiple queries?
This seems like a pretty simple question, but I have not managed to find a definitive answer yet. I have a DAO class, which is naturally querying the database by using criteria queries. So I would lik[详细]
2022-12-31 08:13 分类:问答How to retrieve row count of one-to-many relation while also including original entity?
Say I have two entities Foo and Bar where Foo has-many Bar\'s, class Foo { int ImportantNumber { get; set; }[详细]
2022-12-30 04:28 分类:问答Example using countDistinct in a JPA Criteria API query
I\'m having trouble figuring out how to represent the following JPQL query: SELECT count(e) FROM Foo e[详细]
2022-12-26 04:49 分类:问答-
Creating queries using Criteria API (JPA 2.0)
I\'m trying to create a query with the Criteria API from JPA 2.0, but I can\'t make it work. The problem is with the \"between\" conditional method. I read some documentation to know how I have to d开[详细]
2022-12-25 22:36 分类:问答 Select columns from join table only without requiring a join
Given these tables: create table Orders ( Id INT IDENTITY NOT NULL, primary key (Id) ) create table Items ([详细]
2022-12-23 22:41 分类:问答Dynamic JPA 2.0 query using Criteria API
I am a bit stucked constructing a dynamic query using the CriteriaBuilder of JPA 2.0. I have quite a common use case I guess: User supplies a arbitrary amount of search parameters X to be and / or co[详细]
2022-12-23 20:48 分类:问答setfirstresult & setmaxresult in child collection
I have and entity lets call it Entity, and a Child collection Children. I have a screen where the user has the Entity information, and a list with the Children collection, but that collection can be[详细]
2022-12-23 01:05 分类:问答