|
Date:
February 15, 2011
Author:
Joe Ottinger
"XStream unmarshalling is great fun when you’re not working with a fixed schema.
I’ve been working on a quick start document for GigaSpaces‘ data grid edition lately, and I’m doing it with the code in the form of tests. This makes writing it really easy (run the tests, make sure it works, if it fails, wash, rinse, repeat), but that’s not what this post is about.
For each test, I clear out the data grid, and then populate it; I then act on the grid in various ways to show operations.
One of the operations I’m testing is a query-by-example facility, where you create an example object (using null for wildcards by default), populating a few fields, then ask the data grid to hand back all matching objects.
However, this means the object hierarchies have to be somewhat similar, shall we say. If you have two branches of objects, it doesn’t work."...
Read Full Post
|