
io.quarkus.hibernate.orm.XmlFormat Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-hibernate-orm Show documentation
Show all versions of quarkus-hibernate-orm Show documentation
Define your persistent model with Hibernate ORM and JPA
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