community-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Chase <>
Subject Support for Apache Geode in Apache Zest
Date Thu, 16 Jun 2016 06:12:30 GMT
Dear Geode contributors,
I just got some detail about support for Apache Geode by Apache Zest in its
persistence abstraction.  It will be a while before they have a new
release, but this support is available in their github already.

Here is the implementation,

AND the configuration options that are supported initially can be seen in;

What does this mean? Well, Zest has a persistence abstraction for its
runtime model, and users can swap out any of the other Entity Stores
without code changes beyond the "assembly" (start up).

Entities are declared like this;

public interface Book
    Property<ISBN> isbn();

    Property<String> title();

    Association<Author> author();

    ManyAssociation<Review> reviews();

    NamedAssociation<Distributor> distributors();

We can then do

public void createNewBook( String title, Author author )
    UnitOfWork uow = unitOfWorkFactory.currentUnitOfWork() )
    EntityBuilder<Book> builder = uow.newEntityBuilder(Book.class);
    builder.instance().title().set( title );
    builder.instance().author().set( author );

No implementation class needed for the Book interface. But if we had
additional methods on the Book interface, we can assign one or more
"Mixins", and each mixin can handle one or more of those methods.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message