All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.hibernate.orm.XmlFormat Maven / Gradle / Ivy

There is a newer version: 3.21.0.CR1
Show newest version
package io.quarkus.hibernate.orm;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import jakarta.enterprise.util.AnnotationLiteral;
import jakarta.inject.Qualifier;

import org.hibernate.type.format.FormatMapper;

/**
 * CDI qualifier for beans implementing a {@link FormatMapper}.
 * 

* This mapper will be used by Hibernate ORM for serialization and deserialization of XML properties. *

* Must be used in a combination with a {@link PersistenceUnitExtension} qualifier to define the persistence * unit the mapper should be associated with. */ @Target({ TYPE, FIELD, METHOD, PARAMETER }) @Retention(RUNTIME) @Documented @Qualifier public @interface XmlFormat { class Literal extends AnnotationLiteral implements XmlFormat { public static XmlFormat INSTANCE = new Literal(); private Literal() { } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy