named-query
NamedQuery defined in DAO annotation not found by Hibernate session factory
I use Spring along with Hib开发者_JAVA百科ernate. In my DAO, I defined a NamedQuery which is not found by the session factory, although I have added the package of that DAO to the packagesToScan.[详细]
2023-04-13 07:48 分类:问答Calling Stored Procedure using NHibernate as a Named Query with Input Parameters
Problem Description: I am trying to execute a stored procedure with an input parameter. The stored procedure executes correctly when run from MSSQL 2008 SQL Studio. However I get an error while runni[详细]
2023-04-12 12:11 分类:问答JPA Named Queries vs Criteria API?
Is there a heuristic/best practice/ruleset for a decision between the Criteria API 开发者_如何学JAVAand NamedQuery?[详细]
2023-04-02 23:38 分类:问答More complicated named queries on Hibernate
I have a query that aggregates and groupes from 2 different tables: SELECT co.name AS companyName, f.destination_id, COUNT(f.id) AS numberOfFlights FROM companies co INNER JOIN flights f ON co.c_id[详细]
2023-03-21 13:00 分类:问答Named Queries Pros and Cons
Is there any significant advantage of having queries as Nam开发者_JAVA技巧edQueries over the Entities? If not we could have it in the DAO itself. Kindly throw some ideas in this regard.Named queries p[详细]
2023-03-17 15:05 分类:问答Parameter named query testing with mockito
I want to write a Junit test for my dao, but I have a problem. Here is the method I want to test: public boolean boo(final String param) {[详细]
2023-03-15 00:56 分类:问答Named Query and Inheritance
I\'m having some issues when running a named query on NHibernate. The class I\'m setting as the return value is Organization - not abstract -, and I have a second class (which inherits from this one)[详细]
2023-02-27 22:30 分类:问答JPA TopLink Help!
Greetings, As of now I had accomplished building a single-table JPA. But when going to one-to-one or one-to-many. Things get complicated.[详细]
2023-02-22 15:32 分类:问答hibernate query returns only first character of string
When I run a query like this in oracle 10g using sqldeveloper, it runs fine. selec开发者_开发百科t \'Canada\' as \"country\", emp.name as \"name\" from emp.[详细]
2023-02-17 07:07 分类:问答Insert Row Into Composite Table With Hibernate Named Query
Does anyone know the correct syntax in HQL to insert a row into a composite table? or an example somehwere else?Nothing online, man I miss Linq-To-Sql.[详细]
2023-02-14 01:02 分类:问答