public class ObjectIdTypeDescriptor
extends org.hibernate.type.descriptor.java.AbstractTypeDescriptor<org.bson.types.ObjectId>
ObjectIds as is in MongoDB.| Modifier and Type | Field and Description |
|---|---|
static ObjectIdTypeDescriptor |
INSTANCE |
| Constructor and Description |
|---|
ObjectIdTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
org.bson.types.ObjectId |
fromString(String string) |
String |
toString(org.bson.types.ObjectId value) |
<X> X |
unwrap(org.bson.types.ObjectId value,
Class<X> type,
org.hibernate.type.descriptor.WrapperOptions options) |
<X> org.bson.types.ObjectId |
wrap(X value,
org.hibernate.type.descriptor.WrapperOptions options) |
public static final ObjectIdTypeDescriptor INSTANCE
public String toString(org.bson.types.ObjectId value)
public org.bson.types.ObjectId fromString(String string)
public <X> X unwrap(org.bson.types.ObjectId value,
Class<X> type,
org.hibernate.type.descriptor.WrapperOptions options)
public <X> org.bson.types.ObjectId wrap(X value,
org.hibernate.type.descriptor.WrapperOptions options)
Copyright © 2010-2014 Hibernate. All Rights Reserved.