Subject Re: [Firebird-Java] Exception "Data type unknown" on valid query, prepareStatement call
Author Tim van der Leeuw
Hi Evgeny,

On Mon, Oct 5, 2015 at 10:19 PM Evgeny Putilin evgeneyputilin@... [Firebird-Java] <Firebird-Java@yahoogroups.com> wrote:
 

Hello Tim

How do you setup parameter in Hibernate query?

I tried both 'setLong' and generic 'setParameter' methods.

 

Does next query works for you?

select distinct p.id from ProcessingPersonalData p join p.executingOrganisations orgs where :org.id=orgs.id


Thanks - yes, this query does work! I don't know what I did wrong in first attempt to create my query in this fasion, but this version works.
 

Thanks, Eugene Putilin.


Thanks and kind regards,

Spasiebo,

--Tim van der Leeuw