Using Ebean to map to ElasticSearch (without any other DB, insert, update, delete, query etc)
@DocStore
public class Content extends BaseDomain {
@DocSortable(store = true)
String title;
@DocEmbedded(doc = "id, name")
@ManyToOne
Author author;
String subject;
@DbJson
Map<String,Object> content;
/**
* These are unmapped properties at the top level.
*/
@UnmappedJson
Map<String,Object> unmapped;
ebean.docstoreonly=true
ebean.docstore.url=http://127.0.0.1:9200
ebean.docstore.active=true
ebean.docstore.generateMapping=true
ebean.docstore.dropCreate=true
Author rob = new Author("rob");
rob.setAddress(new Address("93 fow", "auckland"));
rob.save();