Hibernate ORM AbstractTypeDescriptor - 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 AbstractTypeDescriptor class.

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) {
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
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) {
3
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java