Chapter 12. Working with objects  12.1. Introduction  Lets
assume you have download and configured Compass within your
application and create some RSEM/OSEM/XSEM mappings. This
section provides the basics of how you will use Compass from
within the application to load, search and delete Compass
searchable objects. All operations within Compass are accessed
through the CompassSession interface. The interface provides
Object and Resource method API's, giving the developer the
choice to work directly with Compass internal representation
(Resource) or application domain Objects.  12.2. Making
Object/Resource Searchable  Newly instantiated objects (or
Resources) are saved to the index using the save(Object) method.
If you have created more than one mapping (alias) to the same
object (in OSEM file), use the save(String alias, Object)
instead.  Author author = new Author(); author.setId(new
Long(1)); author.setName("Jack London");;  When using OSEM and
defining cascading on component/reference mappings, Compass will