[jOOQ/jOOQ#9747] Add Serializable as supertype to JSON and JSONB
This commit is contained in:
parent
6bdaee9d42
commit
7407843d1b
@ -37,6 +37,8 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* A JSON wrapper type for JSON data obtained from the database.
|
||||
* <p>
|
||||
@ -46,9 +48,10 @@ package org.jooq;
|
||||
* consistent with jOOQ's general way of returning <code>NULL</code> from
|
||||
* {@link Result} and {@link Record} methods.
|
||||
*/
|
||||
public final class JSON {
|
||||
public final class JSON implements Serializable {
|
||||
|
||||
private final String data;
|
||||
private static final long serialVersionUID = 9067511945508834073L;
|
||||
private final String data;
|
||||
|
||||
private JSON(String data) {
|
||||
this.data = data;
|
||||
|
||||
@ -37,6 +37,8 @@
|
||||
*/
|
||||
package org.jooq;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* A JSON wrapper type for JSONB data obtained from the database.
|
||||
* <p>
|
||||
@ -46,9 +48,10 @@ package org.jooq;
|
||||
* consistent with jOOQ's general way of returning <code>NULL</code> from
|
||||
* {@link Result} and {@link Record} methods.
|
||||
*/
|
||||
public final class JSONB {
|
||||
public final class JSONB implements Serializable {
|
||||
|
||||
private final String data;
|
||||
private static final long serialVersionUID = 860591239448066408L;
|
||||
private final String data;
|
||||
|
||||
private JSONB(String data) {
|
||||
this.data = data;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user