-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Oracle 21c JSON columns #422
Add support for customizing the JsonType underlying Oracle column type #424
- Loading branch information
1 parent
a2f92c0
commit d20c417
Showing
66 changed files
with
4,621 additions
and
188 deletions.
There are no files selected for viewing
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
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
31 changes: 31 additions & 0 deletions
31
...rc/main/java/com/vladmihalcea/hibernate/type/json/internal/JsonBlobSqlTypeDescriptor.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package com.vladmihalcea.hibernate.type.json.internal; | ||
|
||
import org.hibernate.type.descriptor.ValueBinder; | ||
import org.hibernate.type.descriptor.ValueExtractor; | ||
import org.hibernate.type.descriptor.java.JavaTypeDescriptor; | ||
import org.hibernate.type.descriptor.sql.BlobTypeDescriptor; | ||
|
||
/** | ||
* @author Vlad Mihalcea | ||
*/ | ||
public class JsonBlobSqlTypeDescriptor extends AbstractJsonSqlTypeDescriptor { | ||
|
||
public static final JsonBlobSqlTypeDescriptor INSTANCE = new JsonBlobSqlTypeDescriptor(); | ||
|
||
private BlobTypeDescriptor blobTypeDescriptor = BlobTypeDescriptor.DEFAULT; | ||
|
||
@Override | ||
public <X> ValueBinder<X> getBinder(JavaTypeDescriptor<X> javaTypeDescriptor) { | ||
return blobTypeDescriptor.getBinder(javaTypeDescriptor); | ||
} | ||
|
||
@Override | ||
public int getSqlType() { | ||
return blobTypeDescriptor.getSqlType(); | ||
} | ||
|
||
@Override | ||
public <X> ValueExtractor<X> getExtractor(JavaTypeDescriptor<X> javaTypeDescriptor) { | ||
return blobTypeDescriptor.getExtractor(javaTypeDescriptor); | ||
} | ||
} |
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
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
Oops, something went wrong.