criteria-api
JPA/Criteria API - Like & equal problem
I\'m trying to use Criteria API in my new project: public List<Employee> findEmps(String name) {[详细]
2023-01-22 08:21 分类:问答Complex Search Queries JPA
In my Wicket+JPA/Hibernate+Spring project, much of the functionality is based around the Inbox page where, using many filtering options (not all of them have to be used), users can restrict the set of[详细]
2023-01-22 01:47 分类:问答JPA 2.0: count for arbitrary CriteriaQuery?
I am trying to implement the following convenience method: /** * Counts the number of results of a search.[详细]
2023-01-21 03:52 分类:问答Using @ElementCollection in CriteriaQuery (or Querying over the content of an @ElementCollection)
public enum ReportStatus { SUCCCEED, FAILED; } public class Work { @ElementCollection @Enumerated(EnumType.STRING)[详细]
2023-01-19 19:12 分类:问答JPA criteria builder with multiple joins
i\'m struggling to create a jpa query that makes use of several tables. i cannot seem to understand how to join the tables together. this is the query i am trying to create:[详细]
2023-01-19 02:08 分类:问答JPA/Metamodel: Strange (inconsistent ?) example in Sun Docs
In Sun Online resources, they provide开发者_JAVA技巧 son example about the usage of the Criteria/Metamodel API, but as far as I understand Java, it seems to be impossible to work:[详细]
2023-01-18 21:27 分类:问答JPA/Hibernate Static Metamodel Attributes not Populated -- NullPointerException
I would like to use JPA2 Criteria API with metamodel objects, which seems to be pretty easy: ... Root<JPAAlbum> albm = cq.from(JPAAlbum.class);[详细]
2023-01-18 20:23 分类:问答Restricting an NHibernate query using ICriteria according to an enumeration of enums
I have an entity, with a field of type enum, that is persisted as an integer in my database. W开发者_JAVA技巧hen retrieving objects from the database using ICriteria, I wish to restrict the results t[详细]
2023-01-17 00:15 分类:问答JPA 2 -- Using @ElementCollection in CriteriaQuery
@Entity public class Person { @ElementCollection private List<Location> locations; [...] 开发者_如何学JAVA}[详细]
2023-01-15 22:02 分类:问答Using JPA2 criteria API without Metamodel on a List property
How can I formulate the following JPA2 criteria query without using the metamodel classes: CriteriaBuilder cb = em.getCriteriaBuilder();[详细]
2023-01-13 14:59 分类:问答