Best code examples for Hibernate ORM AbstractTypeDescriptor class (org.hibernate.type.descriptor.java.AbstractTypeDescriptor)

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

Hibernate ORM AbstractTypeDescriptor examples from Open Source projects
This code example shows how to use the following methods:
public class ObjectIdTypeDescriptor extends AbstractTypeDescriptor<ObjectId> {
 
	public static final ObjectIdTypeDescriptor INSTANCE = new ObjectIdTypeDescriptor();
 
	public ObjectIdTypeDescriptor() { 
		super( ObjectId.class ); 
	} 
 
	@Override 
	public String toString(ObjectId value) {
		return value == null ? null : value.toString();
	} 
	@Override 
	public ObjectId fromString(String string) {
		return new ObjectId( string );
	} 
 
	@SuppressWarnings({ "unchecked" }) 
	@Override 
	public <X> X unwrap(ObjectId value, Class<X> type, WrapperOptions options) {
Full Snippet Info
3
CodeRank
This code example shows how to use the following methods:
public class StringAsObjectIdTypeDescriptor extends AbstractTypeDescriptor<String> {
 
	public static final StringAsObjectIdTypeDescriptor INSTANCE = new StringAsObjectIdTypeDescriptor();
 
	public StringAsObjectIdTypeDescriptor() { 
		super( String.class );
	} 
 
	@Override 
	public String toString(String value) {
		return value == null ? null : value;
	} 
	@Override 
	public String fromString(String string) {
		return string;
	} 
 
	@Override 
	@SuppressWarnings({ "unchecked" }) 
	public <X> X unwrap(String value, Class<X> type, WrapperOptions options) {
Full Snippet Info
3
CodeRank