mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-23 11:47:40 +00:00
Add more type name alias mappings
1. MySQL returns `int` even `integer` is specified 2. H2 returns `character large object` and `binary large object` even `clob` and `blob` is specified
This commit is contained in:
parent
030bc54eea
commit
4ca8377500
@ -248,12 +248,18 @@ private static String normalize(String typeName) {
|
||||
else {
|
||||
final String lowerCaseTypName = typeName.toLowerCase(Locale.ROOT);
|
||||
switch (lowerCaseTypName) {
|
||||
case "int":
|
||||
return "integer";
|
||||
case "character":
|
||||
return "char";
|
||||
case "character varying":
|
||||
return "varchar";
|
||||
case "binary varying":
|
||||
return "varbinary";
|
||||
case "character large object":
|
||||
return "clob";
|
||||
case "binary large object":
|
||||
return "blob";
|
||||
case "interval second":
|
||||
return "interval";
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user