How can I write a Hibernate Criteria query, for a super-class, and check for a certain sub-class? Let\'s imagine we have the following classes all mapped up with Hibernate-JPA:
I have a table DriverScans that joins DriverImages. I want to return all DriverScans where any DriverImage has it\'s Sent field equal to false.
I am having an issue with creating queries with javax.persistence.criteria.CriteriaBuilder. I am using EclipseLink 2.1 and an Oracle 10g database. When building a quer开发者_StackOverflow社区y with mu
I need to set multiple parameter in a criteria. Can anybody please tell, how to achieve this in smartgwt
How do i translate this pseudo-query into a hibernat开发者_开发技巧e criteria query? Given itemID=123, item table has a foreign key reference to category table (catgeoryId), i want to return category
I have a problem with tree structure and applying filters to the tree root. I need to create a query by using the NHibernate criteria, which will apply filter to the very root of the tree (there can b
I\'ve been reading the documentation, but I couldn\'t find any information about it. Is it possible to have Hibernate send user-provided SQL queries in order to UPDATE or to INSERT an object in the d
Whenever I do: Person.where(...) I get a Criteria object. That\'s understandable. But开发者_JS百科 I couldn\'t find how do I get access to actual models collection? For now, I have to do this worka
For my website, i need to do a search mechanism, in which some of the entry field would be: Country, City, Between Dates (with or without year field), Keywords, etc etc.
When I execute the following code: String sqlQuery = \"SELECT {msg.*},{cmd.*} \" + \"FROM schemaName.Messages AS msg \" +