Example usage for org.hibernate.internal.util.config ConfigurationHelper getLong

List of usage examples for org.hibernate.internal.util.config ConfigurationHelper getLong

Introduction

In this page you can find the example usage for org.hibernate.internal.util.config ConfigurationHelper getLong.

Prototype

public static long getLong(String name, Map values, int defaultValue) 

Source Link

Usage

From source file:net.e6tech.elements.persist.hibernate.TableIdGenerator.java

License:Apache License

@Override
protected long determineInitialValue(Properties params) {
    long value = ConfigurationHelper.getLong(INITIAL_PARAM, params, -1);
    if (value == -1) {
        return defaultInitialValue;
    }//from   w  w  w  .  j av  a2  s  . co  m
    return value;
}