I 开发者_如何学JAVAhave a simple test that runs a query 5000 times. The linq version of the query takes over 3 times the HQL and the cached Linq version is significantly slower than the cached version
I have entities: Tweet and User. Tweet has an author, which is an instance of User class. User is following others users and also keeps track of users following him:
hi i\'m trying to get from a mySql DB a query using Hibernates HQL * public String getDetailsByUserAndFullPath(String user,String fullpath) {
The error is: Error: org.hibernate.QueryException: can only generate ids as part of bulk insert with either sequence or post-insert style generators
I\'m able to insert any row with HQL. Example: insert into MyMappedTable(field,field,field) select c.x, c.y, c.z from Object c where ....
I want to convert datetime format to string format in HQL count. For example开发者_开发百科, I have redundant attendance data in each day of month of multiple employee which I need to count and get d
First off I know GroubBy multiple properties has not been implemented yet. What I want to do is SELECT count(*)
I´m giving up and ask the community ... In my project, I´m using Hibernate 3.6.4.Final and a custom sql dialect:
Customer{ String customerName @OneToMany Set users; } User{ String userName; } when i do this: select c.customerName as customerName ,concat(u.userName) as userNames from Customer c join c.user开
I have an existing domain at work and haven\'t been able to limit the result of a query based on at least one instance of a specified type in an associated collection.