Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Querying objects and restricting lookup criteria on member references

Hi All,

If I inject into the space Person objects that has a reference to an Address object and I want to lookup all persons living at a specific postcode for example.

How can I query this?

Thanks for the help.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2006]{quote}

asked 2008-01-12 15:50:13 -0500

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Omar,

With Entry - See:
http://www.gigaspaces.com/wiki/display/GS6/QueryComplexEntryAttribute-6.0
Don't forget to turn on extended indexing.

With POJO - Simply have a getter for this inner class field. Don't forget to index it.
Shay

answered 2008-01-15 09:14:50 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-01-12 15:50:13 -0500

Seen: 23 times

Last updated: Jan 15 '08