Configuration
===============
The way Ebean is configured is being refactored...
It is likely to be broken up into several config objects
- ServerConfiguration ....
- AutofetchConfig .... Autofetch/Profiling options
- DataSourceConfig .... JNDI or url/driver etc or DataSource object
- DatabasePlatform .... for config specific to the Database type (Oracle, H2 etc)
- NamingConvention .... for property/column (Underscore/Matching etc)
This should be much better for programmatic configuration (Spring configuration etc) and better documented.
NOTES:
-------------------
- ServerConfiguration has changed a lot and re-packaged
- NamingConvention has been made simpler (moved sequence stuff to DB specific configuration)
- DatabasePlatform and related objects exposed as part of configuration (You won't explicitly need to configure this as it can be determined from the DataSource automatically but I think it is good to expose this as public API).
EbeanServerFactory
===================
I'm introducing a EbeanServerFactory object that replaces the Ebean.register() method which has been removed. The thinking behind this is to make it clearer that:
- You can create/use EbeanServers without using the Ebean(singleton) at all. In v1.3 you can create an EbeanServer via EbeanServerFactory and not register it with the Ebean(singleton).
- Ebean(singleton) is:
1) a Map of "registered" EbeanServers
2) A convieniance API to use the "primary/default" EbeanServer