HHH-15415 Moving all Jackson and Jakarta Jsonb integrations into dedicated packages
This commit is contained in:
parent
d363ba6e89
commit
f6580ae520
|
@ -39,10 +39,10 @@ import org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLoca
|
||||||
import org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorBuilderImpl;
|
import org.hibernate.resource.transaction.backend.jta.internal.JtaTransactionCoordinatorBuilderImpl;
|
||||||
import org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder;
|
import org.hibernate.resource.transaction.spi.TransactionCoordinatorBuilder;
|
||||||
import org.hibernate.type.FormatMapper;
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.JacksonJsonFormatMapper;
|
import org.hibernate.type.jackson.JacksonJsonFormatMapper;
|
||||||
import org.hibernate.type.JacksonXmlFormatMapper;
|
import org.hibernate.type.jackson.JacksonXmlFormatMapper;
|
||||||
import org.hibernate.type.JaxbXmlFormatMapper;
|
import org.hibernate.type.JaxbXmlFormatMapper;
|
||||||
import org.hibernate.type.JsonBJsonFormatMapper;
|
import org.hibernate.type.jakartajson.JsonBJsonFormatMapper;
|
||||||
|
|
||||||
import org.jboss.logging.Logger;
|
import org.jboss.logging.Logger;
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
package org.hibernate.type.jackson;
|
package org.hibernate.type.jackson;
|
||||||
|
|
||||||
import org.hibernate.type.FormatMapper;
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.JacksonJsonFormatMapper;
|
|
||||||
import org.hibernate.type.JacksonXmlFormatMapper;
|
|
||||||
|
|
||||||
public final class JacksonIntegration {
|
public final class JacksonIntegration {
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||||
*/
|
*/
|
||||||
package org.hibernate.type;
|
package org.hibernate.type.jackson;
|
||||||
|
|
||||||
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.descriptor.WrapperOptions;
|
import org.hibernate.type.descriptor.WrapperOptions;
|
||||||
import org.hibernate.type.descriptor.java.JavaType;
|
import org.hibernate.type.descriptor.java.JavaType;
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
/**
|
/**
|
||||||
* @author Christian Beikov
|
* @author Christian Beikov
|
||||||
*/
|
*/
|
||||||
public class JacksonJsonFormatMapper implements FormatMapper {
|
public final class JacksonJsonFormatMapper implements FormatMapper {
|
||||||
|
|
||||||
public static final String SHORT_NAME = "jackson";
|
public static final String SHORT_NAME = "jackson";
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||||
*/
|
*/
|
||||||
package org.hibernate.type;
|
package org.hibernate.type.jackson;
|
||||||
|
|
||||||
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.descriptor.WrapperOptions;
|
import org.hibernate.type.descriptor.WrapperOptions;
|
||||||
import org.hibernate.type.descriptor.java.JavaType;
|
import org.hibernate.type.descriptor.java.JavaType;
|
||||||
|
|
||||||
|
@ -16,7 +17,7 @@ import com.fasterxml.jackson.dataformat.xml.XmlMapper;
|
||||||
/**
|
/**
|
||||||
* @author Christian Beikov
|
* @author Christian Beikov
|
||||||
*/
|
*/
|
||||||
public class JacksonXmlFormatMapper implements FormatMapper {
|
public final class JacksonXmlFormatMapper implements FormatMapper {
|
||||||
|
|
||||||
public static final String SHORT_NAME = "jackson-xml";
|
public static final String SHORT_NAME = "jackson-xml";
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
package org.hibernate.type.jakartajson;
|
package org.hibernate.type.jakartajson;
|
||||||
|
|
||||||
import org.hibernate.type.FormatMapper;
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.JsonBJsonFormatMapper;
|
|
||||||
|
|
||||||
public final class JakartaJsonIntegration {
|
public final class JakartaJsonIntegration {
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||||
*/
|
*/
|
||||||
package org.hibernate.type;
|
package org.hibernate.type.jakartajson;
|
||||||
|
|
||||||
|
import org.hibernate.type.FormatMapper;
|
||||||
import org.hibernate.type.descriptor.WrapperOptions;
|
import org.hibernate.type.descriptor.WrapperOptions;
|
||||||
import org.hibernate.type.descriptor.java.JavaType;
|
import org.hibernate.type.descriptor.java.JavaType;
|
||||||
|
|
||||||
|
@ -16,10 +17,9 @@ import jakarta.json.bind.JsonbException;
|
||||||
/**
|
/**
|
||||||
* @author Christian Beikov
|
* @author Christian Beikov
|
||||||
*/
|
*/
|
||||||
public class JsonBJsonFormatMapper implements FormatMapper {
|
public final class JsonBJsonFormatMapper implements FormatMapper {
|
||||||
|
|
||||||
public static final String SHORT_NAME = "jsonb";
|
public static final String SHORT_NAME = "jsonb";
|
||||||
public static final JsonBJsonFormatMapper INSTANCE = new JsonBJsonFormatMapper();
|
|
||||||
|
|
||||||
private final Jsonb jsonb;
|
private final Jsonb jsonb;
|
||||||
|
|
Loading…
Reference in New Issue