ebean-orm / ebean-jackson

Jackson ObjectMapper module that uses Ebean's JSON support for serialisation and deserialisation
5 stars 2 forks source link

not support multi ebean server #2

Closed icode closed 9 years ago

icode commented 9 years ago

default use Ebean.json(),how to use multi ebean server?

rbygrave commented 9 years ago

The JacksonEbeanModule constructor that takes a jsonContext ... which is the jsonContext from an EbeanServer.

So the answer is ... use this constructor.


  public JacksonEbeanModule(JsonContext jsonContext) {
    this.jsonContext = jsonContext;
  }
rbygrave commented 9 years ago

Reopen this issue if required.