criteria-api
How does Hibernate SQL generation works ? (used with Criteria API, setfirstResults and setMaxresult)
I have a question about how Hibernate generates SQL when used with the Criteria API. I have an @Entity called Mission. Each mission is linked to a Client (which the mission has been created for) and a[详细]
2023-03-29 06:18 分类:问答Programatically specify lazy loading for many-to-one in hibernate
I am using Hibernate 3.6 with Spring 3.0.5. I have the following mapping for a User object <class name=\"foo.User\" table=\"FOO_USER\">[详细]
2023-03-28 18:55 分类:问答Hibernate Criteria API - create automatic join
I have the following setup Seizure { private SeizureI18n seizureI18n; @OneToOne(fetch = FetchType.LAZY) @PrimaryKeyJoinColumn[详细]
2023-03-28 09:52 分类:问答How to make a like query to @ElementCollection of type map?
I have a class like this: class MyEntity { @ElementCollection Map<String, String> properties; } I\'d like to find out which MyEntity entities have a property value that matches like query usi[详细]
2023-03-28 09:10 分类:问答XML mapping with typed criteria queries
I\'m using hibernate with xml mapping I\'m trying to run some simple code without much success. I am confident that mapping and classes are correct as I am able to perform other queries using JPQL.[详细]
2023-03-27 12:13 分类:问答criteria api where 1<>1 clause
I want the query not to return any values. I can\'t just not query database, so I\'d like to add some unreachable condition to predicates, something like \'where 1 <> 1\'. But the CriteriaBuilder.e[详细]
2023-03-26 21:14 分类:问答jpa 2.0 criteria api expression for sql minus
How do you create a jpa Criteria express开发者_高级运维ion that is equivalent to the sql minus statement[详细]
2023-03-26 00:28 分类:问答Criteria API: query.from returns only null
I\'m pretty new to Criteria API, as a matter of fact I just pushed our latest project to JBoss 6 and JPA 2.0 just for the Criteria API.[详细]
2023-03-23 17:30 分类:问答JPA2 Criteria API .as(String.class) casting to char(1) - How do I work around this?
Using the criteria api, I have a query which does something like: CriteriaBuilder cb = entityManager.getCriteriaBuilder();[详细]
2023-03-23 04:13 分类:问答NHibernate Criteria API with unmapped tables
I have a class with corresponding mapping as below: public class Customer { public virtual int CustomerId { get; private set; }[详细]
2023-03-20 11:43 分类:问答