[hibernate-dev] 5.2 or 6.0
Gunnar Morling
gunnar at hibernate.org
Wed Jun 8 02:50:33 EDT 2016
JavaTypeDescriptorRegistry is used by Hibernate OGM in
(o.h.o.type.impl.TypeTranslatorImpl).
>From my side, the proposed change is good, esp. if it fixes some existing
bugs. It'd lock down OGM to a specific minor of ORM, but that'll happen
anyways once we make use of the changes around schema tooling done in ORM
5.1.
--Gunnar
2016-06-07 19:49 GMT+02:00 Steve Ebersole <steve at hibernate.org>:
> Currently we are still working on 6.0 "on top" of 5.2, meaning that all of
> the changes we are proposing to ORM for 6.0 are kept in a separate
> repo/project using ORM 5.2 as a dependency.
>
> As I work on 6.0 I have come across a change that I would like to make that
> requires that I change something in ORM proper. The specific change is
> that I would like to remove static access
> to org.hibernate.type.descriptor.sql.SqlTypeDescriptorRegistry
> and org.hibernate.type.descriptor.java.JavaTypeDescriptorRegistry and have
> these scoped as part of the SessionFactory instead (technically as part of
> the org.hibernate.metamodel.internal.MetamodelImpl associated with a
> SessionFactory).
>
> There are 2 ways I can go about this:
>
> 1. branch 5.2 and start 6.0 dev on master
> 2. make this change in master for inclusion in both 5.2 and 6.0
>
> (2) is certainly the more convenient approach. But even beyond convenient,
> I have seen some bugs from the fact that these are statically typed -
> theoretically they should be scoped to the SF since the SF can mutate them.
>
> However making that change in 5.2 has some risks depending upon whether
> apps/integrations use it. Anyone aware of any integration(s) accessing
> these 2 registries?
> _______________________________________________
> 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