[hibernate-dev] Defaultable service strategies

Steve Ebersole steve at hibernate.org
Thu Mar 22 09:18:08 EDT 2018


This is part of my cashing change branch if you all wanted to take a look

On Thu, Mar 22, 2018, 7:57 AM Chris Cranford <crancran at gmail.com> wrote:

> +1
>
> Makes sense to me.
>
>
> On 03/21/2018 02:42 PM, Steve Ebersole wrote:
>
> Thoughts on allowing certain services to be defaulted to the single
> implementor registered with the `StrategySelector` service when there is
> just one?
>
> For example, when resolving the RegionFactory unless both (a)
> `hibernate.cache.region.factory_class` and (b) one of
> `hibernate.cache.use_second_level_cache` or
> `hibernate.cache.use_query_
>
> cache` are defined caching support will be
> disabled.  What I am proposing would kick in in this case and check to see
> if there is just a single RegionFactory registered with the
> StrategySelector and if so use that one.
>
> It would allow Hibernate to more seamlessly operate as a JPA provider too,
> as currently to use caching with JPA and Hibernate users have to do the
> normal JPA stuff and then also define these Hibernate settings.  It would
> be nicer if they could just do the JPA stuff.
> _______________________________________________
> hibernate-dev mailing listhibernate-dev at lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/hibernate-dev
>
>
>


More information about the hibernate-dev mailing list