Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-537

MariaDB jdbc driver does not play well with hbm2java

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • 1.4.5
    • Other
    • None

    Description

      Original description, which allowed me to make progress, here: https://mariadb.com/kb/en/library/hibernate-reverse-engineering-wizard-with-mariadb/#comment_1389

      Essentially, the failure is caused by the mariadb driver reporting types of regular tables as "BASE TABLE" in combination with the following code in hibernate tools:

      if ( ("TABLE".equalsIgnoreCase(tableType) || "VIEW".equalsIgnoreCase(tableType) /*|| "SYNONYM".equals(tableType) */) ) { //||
      ...
      } else {
        log.debug("Ignoring table " + tableName + " of type " + tableType);
      }

      I'm reporting it here since the root cause is a backwards compatibility issue of mariadb, as far as I can tell, although it would probably be best solved in hibernate tools. Maybe the simplest fix for mariadb would be to submit a pull request to the hibernate tools maintainers

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            a_flj_ Florin Jurcovici
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.