I have a pojo CurrencyPair which I have successfully saved in the
database using jdo.
CurencyPair has a field currencyPair.

Now trying to select in jdo the query works fine so long as there are
no conditions/filters involved. ie I can select all currency pairs
like this

PersistenceManager pm= getPersistenceManager();
Query query = pm.newQuery(CurrencyPair.class);
List<CurrencyPair> l = (List<CurrencyPair>)query.execute();

This gives
USD.JPY
GBP.JPY
EUR.GBP
EUR.USD
USD.CAD
AUD.USD
USD.CHF
EUR.JPY
EUR.CHF
GBP.USD

PersistenceManager pm= getPersistenceManager();
Query query = pm.newQuery(CurrencyPair.class,"currencyPair ==
'AUD.USD'");
List<CurrencyPair> l = (List<CurrencyPair>)query.execute();

returns  no data.

I've tried all all combinatioins of setting a filter and declaring a
parameter or putting the whole query in 1 String according to the gae
getting started guide.
I have no idea what I'm doing wrong. any help would be appreciated.

Thanks.
Dukha

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=.


Reply via email to