Re: [hibernate-dev] Fwd: Design : delegates and constructors

2012-07-17 Thread Steve Ebersole
Yep, thats definitiey a possibility as well. We have moved to builder pattern in lots of other places. On 07/17/2012 05:17 PM, Gunnar Morling wrote: > Hi, > > Maybe you could also use a builder for this: > > AbstractEntityManagerImpl = AbstractEntityManagerBuilder > .forDelegate(entityManag

[hibernate-dev] Fwd: Design : delegates and constructors

2012-07-17 Thread Gunnar Morling
Hi, Maybe you could also use a builder for this: AbstractEntityManagerImpl = AbstractEntityManagerBuilder .forDelegate(entityManagerFactory) .contextType(...) .transactionType(...) .property("foo", bar) .property("baz", qux) .build(); That way new attributes required for