Created
November 20, 2022 07:47
-
-
Save Abhi-Codes/657cd03087a8f6b859c448a04f1555b6 to your computer and use it in GitHub Desktop.
Implement MetadataBuilderContributor interface
This file contains 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
public class SQLFunctionContributor implements MetadataBuilderContributor { | |
@Override | |
public void contribute(MetadataBuilder metadataBuilder) { | |
metadataBuilder.applySqlFunction("json_contains_key", | |
new SQLFunctionTemplate(BooleanType.INSTANCE, "JSON_CONTAINS(?1, JSON_QUOTE(?2))")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment