Thanks,

I will try with the NamedQuery example. It sounds like exactly what I was
looking for.

I don't know if the constant for a the fetch query is a regular
specification.
I can also remember exactly the problem you describe with a constants of
type Boolean which actually really seems to be impossible (at least in the
past).
In later versions of Hibernate they have implemented some extend to the
official JPA Annotations where you can use something like a
@Where-Annotation targeting my described use-case scenario.

Sebastian

2011/12/5 Michael Spiro <m.sp...@dcs-caesar.de>

> > However, the documentation says that the constant values
> > can be strings, numeric or null, but nothing about boolean constants.
>
> Sorry, my fault - it's not in the documentation, but in the source code.
>
>
>


-- 
Sebastian Wagner
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wag...@gmail.com

Reply via email to