hakandilek / play2-crud

Simple CRUD & DAO implementation for play2
Other
142 stars 52 forks source link

Multiple database servers support #49

Closed gbblsd closed 9 years ago

gbblsd commented 9 years ago

In my application I have mulpitle database ebean servers: ebean.central="models.central." ebean.local="models.local."

As I understand, there is no support for multiple servers: public BasicDAO(Class keyClass, Class modelClass) { this(new Finder<K, M>(keyClass, modelClass)); }

In this code there is no serverName parameter in the Finder constructor call.

What can I do in this situation ? Do you plan to add this feature in the future ?

hakandilek commented 9 years ago

I have no intention to support multiple databases on the DAO level, sorry. This has to be solved on the configuration level, and it should be invisible to DAOs.

If you have an idea how to solve this please feel free to fork the project.