1 //$Id: IdentifierType.java,v 1.1 2004/06/03 16:31:30 steveebersole Exp $ 2 package org.hibernate.type; 3 4 /** 5 * A <tt>Type</tt> that may be used as an identifier. 6 * @author Gavin King 7 */ 8 public interface IdentifierType extends Type { 9 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 } 19 20 21 22 23 24 25