[hibernate-dev] Refactoring of org.hibernate.cfg.Configuration

Shaozhuang Liu stliu at hibernate.org
Mon Dec 23 20:35:37 EST 2013


This Configuration class is being deprecated in 5.0, take a look of the new interface :)

org.hibernate.metadata package:

* MetadataSources
* Metadata
* MetadataBuilder
* SessionFactoryBuilder

On Dec 24, 2013, at 1:45, Andrey Polyakov <polyakovfromurals at gmail.com> wrote:

> Hi everyone,
> 
> I am writing to make a proposal to refactor the Configuration class as an
> interface and and implementation for the reason below.
> 
> It would allow third-party developers as myself to use proxies and
> decorators with default configuration.
> 
> For example, in groovy.grails they extend the Configuration class. I may
> extend DefaultGrailsDomainConfiguration but if there were another developer
> he would have to choose which child to extend which makes things trickier.
> 
> To be precise I am playing with generateSchemaCreationScript and
> generateSchemaUpdateList. I want to do things with default scripts by
> simply wrapping around configuration given.
> 
> Kind Regards,
> 
> Andrey Polyakov
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list