public final class LockModeConverter extends Object
LockMode
and
LockModeType
.Modifier and Type | Method and Description |
---|---|
static LockMode |
convertToLockMode(LockModeType lockMode)
Convert from JPA defined LockModeType to Hibernate specific LockMode.
|
static LockModeType |
convertToLockModeType(LockMode lockMode)
Convert from the Hibernate specific LockMode to the JPA defined LockModeType.
|
public static LockModeType convertToLockModeType(LockMode lockMode)
lockMode
- The Hibernate LockMode.public static LockMode convertToLockMode(LockModeType lockMode)
lockMode
- The JPA LockModeTypeCopyright © 2017 JBoss by Red Hat. All rights reserved.