mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13443 Build failing to parse *.properties file attributes containing trailing space
This commit is contained in:
parent
e7cefd8ddd
commit
084c91c3d0
@ -150,7 +150,7 @@ public static Action interpretHbm2ddlSetting(Object value) {
|
|||||||
return hbm2ddlSetting( (Action) value );
|
return hbm2ddlSetting( (Action) value );
|
||||||
}
|
}
|
||||||
|
|
||||||
final String name = value.toString();
|
final String name = value.toString().trim();
|
||||||
if ( StringHelper.isEmpty( name ) || NONE.externalJpaName.equals( name ) ) {
|
if ( StringHelper.isEmpty( name ) || NONE.externalJpaName.equals( name ) ) {
|
||||||
// default is NONE
|
// default is NONE
|
||||||
return NONE;
|
return NONE;
|
||||||
@ -178,7 +178,7 @@ public static Action interpretHbm2ddlSetting(Object value) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IllegalArgumentException( "Unrecognized legacy `hibernate.hbm2ddl.auto` value : " + value );
|
throw new IllegalArgumentException( "Unrecognized legacy `hibernate.hbm2ddl.auto` value : `" + value + "`");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Action hbm2ddlSetting(Action action) {
|
private static Action hbm2ddlSetting(Action action) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user