public interface ColumnNameMatcher
| Modifier and Type | Method and Description |
|---|---|
boolean |
columnNameMatches(String columnName,
String javaName)
Returns whether the column name fits the given Java identifier name.
|
default boolean |
columnNameStartsWith(String columnName,
String prefix)
Return whether the column name starts with the given prefix, according to the matching strategy of this
ColumnNameMatcher. |
boolean columnNameMatches(String columnName, String javaName)
columnName - the SQL column namejavaName - the Java property, field, or parameter namedefault boolean columnNameStartsWith(String columnName, String prefix)
ColumnNameMatcher. This method is used by reflective mappers to short-circuit nested mapping when no
column names begin with the nested prefix.
By default, this method returns columnName.startWith(prefix). Third party implementations should override
this method to match prefixes by the same criteria as columnNameMatches(String, String).columnName - the column name to testprefix - the prefix to test forCopyright © 2019. All rights reserved.