Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  * License: GNU Lesser General Public License (LGPL), version 2.1 or later
  * See the lgpl.txt file in the root directory or <>.
 package org.hibernate.ogm.type.impl;
Type descriptor for translating a BigInteger Java type into its string representation in order to be stored in the datastore deposit. The java.math.BigInteger.toString() method is used to get a string representation, this method use the plain notation with minus symbol only that should be cross platform/language usable.

Nicolas Helleringer
See also:
	public static final BigIntegerType INSTANCE = new BigIntegerType();
	public BigIntegerType() {
	public String getName() {
		return "big_integer";
	protected boolean registerUnderJavaType() {
		return true;
	public int getColumnSpan(Mapping mappingthrows MappingException {
		return 1;
	public String toString(BigInteger valuethrows HibernateException {
		return value.toString();
	public BigInteger fromStringValue(String stringthrows HibernateException {
		try {
			return new BigIntegerstring );
		catch ( NumberFormatException e ) {
			throw new HibernateException"Unable to rebuild BigInteger from String"e );
New to GrepCode? Check out our FAQ X