Example usage for org.hibernate.internal.util.collections ArrayHelper FALSE

List of usage examples for org.hibernate.internal.util.collections ArrayHelper FALSE

Introduction

In this page you can find the example usage for org.hibernate.internal.util.collections ArrayHelper FALSE.

Prototype

null FALSE

To view the source code for org.hibernate.internal.util.collections ArrayHelper FALSE.

Click Source Link

Usage

From source file:org.jboss.as.test.compat.jpa.hibernate.transformer.BooleanSingleColumnType.java

License:Open Source License

@Override
public boolean[] toColumnNullness(Object value, Mapping mapping) {
    return value == null ? ArrayHelper.FALSE : ArrayHelper.TRUE;
}

From source file:org.ow2.proactive.scheduler.core.db.types.NonEmptyMapToBlobType.java

License:Open Source License

@Override
public boolean[] toColumnNullness(Object value, Mapping mapping) {
    if (value instanceof Map && ((Map) value).isEmpty()) {
        return ArrayHelper.FALSE;
    }/*from   ww  w. j  a va 2 s .c o m*/
    return super.toColumnNullness(value, mapping);
}