Beginner |
|
Joined: Thu Aug 09, 2007 3:48 pm Posts: 38
|
Suppose i have a formula property such as:
@Formula("select count(*) from T")
public boolean exists()
{
return exists;
}
Now i want to use the result of this formula in some other query
like i use other properties such as:
"Select * from T where name like '%bla%' and exists = true"
I cant make this work, cuz the amount of aliases generated is huge, or when i try to make aliases of my own i get that there is no property name exists...
any ideas? any1 had this need?
|
|