Message:
The following issue has been closed.
Resolver: Gavin King
Date: Mon, 2 Jun 2003 6:58 PM
Java constants in HQL have been supported for a long time!
(And are even mentioned in the documentation.)
You may need to use the fully qualified class name.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-118
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-118
Summary: Support for Java expressions in HQL
Type: Improvement
Status: Closed
Priority: Minor
Resolution: DUPLICATE
Project: Hibernate2
Components:
core
Assignee: Gavin King
Reporter: Leonardo Quijano
Created: Mon, 2 Jun 2003 10:47 AM
Updated: Mon, 2 Jun 2003 6:58 PM
Description:
I don't know if this has been already posted, but here I go.
It'd be useful to have something like this in HQL:
FROM foo in class Foo
WHERE (foo.someProperty != Foo.A_CONSTANT)
instead of
FROM foo in class Foo
WHERE (foo.someProperty != 354627)
Of course, it could be orthogonal, kind of:
FROM foo in class Foo
WHERE (foo.someProperty != foo.getComplexValue())
Or it could be just constants.
Is this feasible?
Leonardo
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|