[hibernate-dev] Refactor MySQL Dialects

Steve Ebersole steve at hibernate.org
Thu Feb 9 08:28:48 EST 2017


That is a good solution for now.

Ultimately I think we still want to add some capability for Dialects to
configure either themselves or the things they return based on Connection,
env, etc.  It's something we have discussed for some time.

On Wed, Feb 8, 2017 at 1:01 AM Vlad Mihalcea <mihalcea.vlad at gmail.com>
wrote:

> Hi,
>
> While working on MariaDB Dialects, I realize that we should also refactor
> the MySQL ones.
> The problem is that we introduced the InnoDB hierarchy.
>
> Since the only difference between those two is related to 3 methods, I
> think we should hide them behind a MySQLStorageEngine hierarchy with InnoDB
> being the default one.
> This way, we'll have a single MySQL Dialect hierarchy, and users can switch
> to MyISAM via a configuration property which define what MySQLStorageEngine
> implementation we are using.
>
> Let me know what you think.
>
> 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