Skip to content

Commit 3c354d8

Browse files
author
Martin Fekete
committed
review
1 parent 9cf101f commit 3c354d8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

rsql-jpa/src/main/java/io/github/perplexhub/rsql/jsonb/JsonbSupport.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
*/
3131
public class JsonbSupport {
3232

33-
/**
34-
* is annotation present on classpath ?
35-
*/
3633
private static final boolean isHibernatePresent = ClassUtils.isPresent(
3734
"org.hibernate.annotations.JdbcTypeCode", JsonbSupport.class.getClassLoader());
3835

@@ -109,7 +106,7 @@ public static boolean isJsonType(String mappedProperty, ManagedType<?> classMeta
109106
* @return true if the attribute is a jsonb attribute
110107
*/
111108
private static boolean isJsonColumn(Attribute<?, ?> attribute) {
112-
return isJsonbColumn(attribute) || isJdbcTypeCodeJSON(attribute);
109+
return isJsonbColumn(attribute) || isJdbcTypeCodeJson(attribute);
113110
}
114111

115112
/**
@@ -131,7 +128,7 @@ private static boolean isJsonbColumn(Attribute<?, ?> attribute) {
131128
* @param attribute the attribute
132129
* @return true if the column is a jsonb column
133130
*/
134-
private static boolean isJdbcTypeCodeJSON(Attribute<?, ?> attribute) {
131+
private static boolean isJdbcTypeCodeJson(Attribute<?, ?> attribute) {
135132
return isHibernatePresent && getFieldAnnotation(attribute, JdbcTypeCode.class)
136133
.map(JdbcTypeCode::value)
137134
.map(code -> SqlTypes.JSON == code)

0 commit comments

Comments
 (0)