Best code examples for Hibernate ORM IdentifierValue class (org.hibernate.engine.spi.IdentifierValue)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM IdentifierValue class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Hibernate ORM IdentifierValue examples from Open Source projects
This code example shows how to use the following methods:
		else if ( "none".equals( unsavedValue ) ) {
			return IdentifierValue.NONE;
		} 
		else if ( "any".equals( unsavedValue ) ) {
			return IdentifierValue.ANY;
		} 
		else { 
			try { 
				return new IdentifierValue( ( Serializable ) ( ( IdentifierType ) identifierType ).stringToObject( unsavedValue ) );
			} 
			catch ( ClassCastException cce ) {
				throw new MappingException( "Bad identifier type: " + identifierType.getName() );
			} 
			catch ( Exception e ) {
				throw new MappingException( "Could not parse identifier unsaved-value: " + unsavedValue );
			} 
		} 
	} 
 
	public static VersionValue getUnsavedVersionValue(
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: