[hibernate-dev] [OGM] GridDialect facets

Gunnar Morling gunnar at hibernate.org
Fri Jul 24 05:38:49 EDT 2015


> Right, we could create an empty interface to flag them.

They all extend GridDialect already. Is there any easier way for an dialect
provider to learn about all the facets than inspecting the type hierarchy
of GridDialect?


2015-07-24 10:59 GMT+02:00 Davide D'Alto <daltodavide at gmail.com>:

> >> I have been adding a facet to GridDialect and found it surprisingly
> hard:
> >
> > What is a facet in this context.
>
> Facet are additional interfaces that can be used on a GridDialect to add
> features to it, like support for optimistic locking, batching or native id
> generation.
>
> > non datastore dialect? Is it not one dialect per datastore?
>
> Emmanuel is talking about some decorator classes the we use in different
> scenarios. They will delegate the operations to the datastore dialect but
> will execute some additional logic
> before/after. For example, the GridDialectLogger will add some log before
> delegating the operations to selected dialect.
>
> > * I’m also concerned about facet discoverability, I don’t think it’s
> trivial for a dialect implementor to get the list of facets easily, which
> will tend to bring minimal dialects without the advanced features.
>
> Right, we could create an empty interface to flag them.
>
>
>
>
>
>
> On Fri, Jul 24, 2015 at 9:32 AM, Hardy Ferentschik <hardy at hibernate.org>
> wrote:
>
> > On Fri, Jul 24, 2015 at 09:56:24AM +0200, Emmanuel Bernard wrote:
> >
> > > I have been adding a facet to GridDialect and found it surprisingly
> hard:
> >
> > What is a facet in this context. I've seen you guys using this term on
> IRC
> > as well,
> > but I am not sure what you mean with it in relation to a GridDialect.
> >
> > >  which non datastore dialects was supposed to implement the facet
> >
> > non datastore dialect? Is it not one dialect per datastore?
> >
> > Just trying to understand what you guys are actually talking about ;-)
> >
> > --Hardy
> >
> > _______________________________________________
> > hibernate-dev mailing list
> > hibernate-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hibernate-dev
> >
> _______________________________________________
> 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