Conversation
- Updated for Grails 7 - Changed from ExpandoMetaClass to Extension Modules - New coords: `org.grails.plugins:grails-postgresql-extensions` - Re-packaged to `gpc.pgext.*` - Re-organized project
GPC projects should publish to `io.github.gpc`.
sbglasius
reviewed
Oct 14, 2025
| @@ -1,16 +1,16 @@ | |||
| package net.kaleidos.hibernate.criterion.array | |||
| package gpc.pgext.hibernate.criterion.array | |||
Comment on lines
+25
to
+27
| } | ||
|
|
||
| PgHstoreOperatorExpression(String propertyName, Map<Object, String> value, String operator) { |
Member
There was a problem hiding this comment.
Could these two constructors just be joined into one:
PgHstoreOperatorExpression(String propertyName, Object value, String operator) {
this.propertyName = propertyName
this.value = value as Map<Object, String>
this.operator = operator
}
| static Object[] getValueAsArrayOfType(Object targetValue, Class<?> expectedType, MapFunction mapFunction) { | ||
| Object[] arrValue | ||
| static Object[] getValueAsArrayOfType(Object targetValue, Class expectedType, MapFunction mapFunction) { | ||
| if (targetValue instanceof Object[]) return (Object[]) targetValue |
Member
There was a problem hiding this comment.
Add curly brackets like if() {}
| def items = (targetValue instanceof Collection) ? (targetValue as List) : [targetValue] | ||
| def converted = items.collect { o -> | ||
| if (expectedType.isInstance(o)) return o | ||
| if (mapFunction) return mapFunction.map(o) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
io.github.gpc:grails-postgresql-extensionsgpc.pgext.*