Hi,
I am developing a GWT Application and using JDO.
I have to serach a word in a ServerProduct product_desc element /
Column.
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ServerProduct {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
@Persistent
private String product_desc;
}
Can some one please guide how to use Contains or Matches to find a
word "TestSearch" in product_desc using JDO in GWT
I have already tried
Query jdoql = pm.newQuery (ServerProduct.class, "product_desc.contains
(\"TestSearch\")");
products = (List<ServerProduct>) jdoql.execute();
and
Query jdoql = pm.newQuery (ServerProduct.class, "product_desc.matches
(\".*TestSearch.*")"); //using pattern seraching
products = (List<ServerProduct>) jdoql.execute();
They throw exception with not supported !!!!
---
Sandeep
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.