[jOOQ/jOOQ#7545] Use ForcedType#withIncludeExpression() in JPADatabase

Using the legacy ForcedType#withExpression() results in a logged
warning.
This commit is contained in:
Knut Wannheden 2019-08-16 14:04:57 +02:00
parent 0f5b8799b9
commit 2202e4f21a

View File

@ -231,7 +231,7 @@ public class JPADatabase extends H2Database {
// to the available qualification
String regex = "(.*?\\.)?" + entry.getKey().unquotedName().toString().replace(".", "\\.");
ForcedType forcedType = new ForcedType()
.withExpression("(?i:" + regex + ")")
.withIncludeExpression("(?i:" + regex + ")")
.withUserType(convertToEntityAttribute.getName())
.withConverter(String.format("new %s(%s.class)",
JPAConverter.class.getName(),