[jOOQ/jOOQ#9612] Document JSON and JSONB NULL semantics

This commit is contained in:
Lukas Eder 2019-12-04 10:41:46 +01:00
parent a2f29a8612
commit 734bd40138
2 changed files with 12 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {