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

org.hibernate.annotations.Nationalized Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.annotations;

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

import org.hibernate.dialect.Dialect;

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

/**
 * Specifies that the annotated character data should be stored with
 * nationalization support. The effect of this annotation depends on
 * {@linkplain Dialect#getNationalizationSupport() the SQL dialect}.
 * 
    *
  • Some databases support storing nationalized data using their * "normal" character data types ({@code CHAR, VARCHAR, CLOB}). * For these dialects, this annotation is effectively ignored. *

    * See {@link org.hibernate.dialect.NationalizationSupport#IMPLICIT}. *

  • Other databases support storing nationalized data only via the * specialized, standard SQL variants ({@code NCHAR, NVARCHAR, NCLOB)}. * For these dialects, this annotation will adjust the JDBC type * code to use the specialized variant. *

    * See {@link org.hibernate.dialect.NationalizationSupport#EXPLICIT}. *

* * @see org.hibernate.dialect.NationalizationSupport * @see org.hibernate.cfg.AvailableSettings#USE_NATIONALIZED_CHARACTER_DATA * * @author Steve Ebersole */ @Target( { METHOD, FIELD, ANNOTATION_TYPE } ) @Retention( RUNTIME ) public @interface Nationalized { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy