public class ImportAwareGenerator
extends com.atlassian.hibernate.extras.ResettableTableHiLoGenerator
ResettableTableHiLoGenerator
. When used through
HibernateDaoUtils
,
it will not generate a new id and will use a supplied one instead. Should only be used for import purposes.COLUMN, DEFAULT_COLUMN_NAME, DEFAULT_TABLE_NAME, TABLE
Constructor and Description |
---|
ImportAwareGenerator() |
Modifier and Type | Method and Description |
---|---|
static void |
clearSaveWithIdContext() |
static void |
enterSaveWithIdContext(Object object,
Serializable id) |
Serializable |
generate(org.hibernate.engine.spi.SessionImplementor session,
Object obj) |
static void |
leaveSaveWithIdContext() |
configure, getMaxLo, reset, sqlCreateStrings
public Serializable generate(org.hibernate.engine.spi.SessionImplementor session, Object obj)
generate
in interface org.hibernate.id.IdentifierGenerator
generate
in class com.atlassian.hibernate.extras.ResettableTableHiLoGenerator
public static void enterSaveWithIdContext(Object object, Serializable id)
public static void leaveSaveWithIdContext()
@TestOnly public static void clearSaveWithIdContext()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.