[CONJ-537] MariaDB jdbc driver does not play well with hbm2java Created: 2017-10-09 Updated: 2017-10-10 Resolved: 2017-10-10 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | None |
| Fix Version/s: | 1.4.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Florin Jurcovici | Assignee: | Diego Dupin |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
I think the relevant parts are these: <dependency> And the following hibernate-related dependencies: <dependency> |
||
| 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:
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 |
| Comments |
| Comment by Diego Dupin [ 2017-10-09 ] |
|
This has been corrected with The version used (1.1.7) doesn't have this correction. try recent one like 1.6.5 for java < 8, or 2.1.2 for java 8+. |
| Comment by Florin Jurcovici [ 2017-10-10 ] |
|
Thanks. Changed dependency and verified, it does indeed work. This ticket can be closed, IMO. |