Hibernate ORM AbstractUUIDGenerator - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM AbstractUUIDGenerator class.

This code example shows how to use the following methods:
 * 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();
Full Snippet Info
3
CodeRank
Stop searching for code, let great code find you!  Add Codota to your java IDE