cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <...@apache.org>
Subject Re: [flow] Hibernate createCriteria syntax help?
Date Wed, 26 Jan 2005 20:23:59 GMT
Il giorno 26/gen/05, alle 16:14, JD Daniels ha scritto:

> 1        var criteria = hs.createCriteria(Bug.class);
> 2       criteria.add(Expression.eq("status", "UNCONFIRMED"));
> 3        var bug = criteria.list();
>
> this spits out : missing name after . operator on line 1

Simply use:

> 1        var criteria = hs.createCriteria(Bug);

Javascript does not need (or like) the .class. That's all.

	Ugo

-- 
Ugo Cei - http://agylen.com/blojsom/blog/

Mime
View raw message