org.hibernate.type.IdentifierType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
JPMS Module-Info's for a few of the Jakarta Libraries just until they add them in themselves
/*
* 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.type;
/**
* Additional contract for a {@link Type} may be used for a discriminator. THis contract is used to process
* the string representation as presented in metadata, especially in XML files.
*
* @author Gavin King
*/
public interface IdentifierType extends Type {
/**
* Convert the value from the mapping file to a Java object.
*
* @param xml the value of discriminator-value or unsaved-value attribute
* @return The converted value of the string representation.
*
* @throws Exception Indicates a problem converting from the string
*/
public T stringToObject(String xml) throws Exception;
}