bug « HQL « JPA Q&A





2. Possible bug in HQL?    forum.hibernate.org

Greetings everyone, Since I don't know how to describe the problem in a concise way, I will instead post code snippets to reproduce the problem. Code: @Entity @Inheritance(strategy = InheritanceType.JOINED) public class SubDocument implements Serializable { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @AccessType(value = "field") private Long id; ...

4. Bug in HQL code?    forum.hibernate.org

I have written several HQL queries for my application, such as this one: from States where Name = ? to retrieve Primary Keys from tables so that I can store them in a table that is loaded with Foreign Keys. However, the following query: from ActionType where ActionType = ? generates the following exception: Exception in thread "main" java.lang.ExceptionInInitializerError ...

5. HQL parse returntype bug about sum(1)    forum.hibernate.org

HIBERNATE 2.1.7 J2SDK1.4.2_06 WINDOWS2000 WEBLOGIC8.1.2 HQL: select o.Id, sum(1), sum(o.Amount) from Orders o group by o.Id it return two columns,it is not three columns I debug it class:QueryTranslator //priate var field scalarTypes just two columns ,and so returnedTypes is 2 // why is not three columns //I have no debug more.. ,may be I'am no smart samwen 2005-3-29

6. bug in hql.g    forum.hibernate.org

7. *BUG* HQL "in" seems to do "not in"    forum.hibernate.org

Ok, something is seriously wrong here. If I change "in" to "not in" the correct SQL is generated (for a not in statement), running the "not in" version against my database through PHP myadmin yields zero results, yet using the hibernate tools query builder, it retrieves the correct rows. It's almost as if the in and not in statements get turned ...

8. HQL bug with not ( ? = some elements(x) )    forum.hibernate.org