01: //$Id: IdentifierType.java 3890 2004-06-03 16:31:32Z steveebersole $
02: package org.hibernate.type;
03:
04: /**
05: * A <tt>Type</tt> that may be used as an identifier.
06: * @author Gavin King
07: */
08: public interface IdentifierType extends Type {
09:
10: /**
11: * Convert the value from the mapping file to a Java object.
12: * @param xml the value of <tt>discriminator-value</tt> or <tt>unsaved-value</tt> attribute
13: * @return Object
14: * @throws Exception
15: */
16: public Object stringToObject(String xml) throws Exception;
17:
18: }
|