Code example for AbstractUUIDGenerator

0
 * Mapping parameters supported: none 
 * 
 * @author wallacew 
 */ 
 
public class CustomGeneratedId extends AbstractUUIDGenerator implements Configurable {
 
	// private String sep = ""; 
	/** Generate function.  
	* @param session Session handle 
	* @param obj obj type 
	* @return Serializable object 
	*/ 
	@SuppressWarnings("unused") 
	public Serializable generate(SessionImplementor session, Object obj) {
		Serializable result = null;
 
		// if user has set the id manually, don't change it.		 
		try { 
			Class<?> clazz = obj.getClass();
Stop searching for code, let great code find you!  Add Codota to your java IDE