[hibernate-dev] RequiresDialects vs RequiresDialect

andrea boriero andrea at hibernate.org
Wed Jun 8 09:31:36 EDT 2016


the annotation was introduced with
https://hibernate.atlassian.net/browse/HHH-6841

the reason seems to provide the ability add different reasons for each
Dialect.

On 8 June 2016 at 14:19, Vlad Mihalcea <mihalcea.vlad at gmail.com> wrote:

> Hi,
>
> While writing a cross-dialect test, I bumped into the following issue:
>
> https://hibernate.atlassian.net/browse/HHH-10814
>
> The question is why do we have a @RequiresDialects annotation:
>
> @RequiresDialects({
>     @RequiresDialect(PostgreSQL81Dialect.class),
>     @RequiresDialect(Oracle8iDialect.class)
> })
>
> when @RequiresDialect can take multiple dialects as well:
>
> @RequiresDialect({ Oracle8iDialect.class, PostgreSQL81Dialect.class} )
>
> Vlad
> _______________________________________________
> 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