[jOOQ/jOOQ#9612] Document JSON and JSONB NULL semantics
This commit is contained in:
parent
a2f29a8612
commit
734bd40138
@ -39,6 +39,12 @@ package org.jooq;
|
||||
|
||||
/**
|
||||
* A JSON wrapper type for JSON data obtained from the database.
|
||||
* <p>
|
||||
* The wrapper represents JSON {@link #data()} in serialised string form. A
|
||||
* <code>CAST(NULL AS JSON)</code> value is represented by a <code>null</code>
|
||||
* reference of type {@link JSON}, not as <code>data() == null</code>. This is
|
||||
* consistent with jOOQ's general way of returning <code>NULL</code> from
|
||||
* {@link Result} and {@link Record} methods.
|
||||
*/
|
||||
public final class JSON {
|
||||
|
||||
|
||||
@ -39,6 +39,12 @@ package org.jooq;
|
||||
|
||||
/**
|
||||
* A JSON wrapper type for JSONB data obtained from the database.
|
||||
* <p>
|
||||
* The wrapper represents JSONB {@link #data()} in serialised string form. A
|
||||
* <code>CAST(NULL AS JSONB)</code> value is represented by a <code>null</code>
|
||||
* reference of type {@link JSONB}, not as <code>data() == null</code>. This is
|
||||
* consistent with jOOQ's general way of returning <code>NULL</code> from
|
||||
* {@link Result} and {@link Record} methods.
|
||||
*/
|
||||
public final class JSONB {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user