/** * INTERNAL: * Indicates whether pk or some of its components * set after insert into the database. * Shouldn't be called before ClassDescriptor has been initialized. */ public boolean isPrimaryKeySetAfterInsert(AbstractSession session) { return (usesSequenceNumbers() && getSequence().shouldAcquireValueAfterInsert()) || (hasReturningPolicy() && getReturningPolicy().isUsedToSetPrimaryKey()); }
/** * INTERNAL: * Indicates whether pk or some of its components * set after insert into the database. * Shouldn't be called before ClassDescriptor has been initialized. */ public boolean isPrimaryKeySetAfterInsert(AbstractSession session) { return (usesSequenceNumbers() && getSequence().shouldAcquireValueAfterInsert()) || (hasReturningPolicy() && getReturningPolicy().isUsedToSetPrimaryKey()); }
/** * INTERNAL: * Indicates whether pk or some of its components * set after insert into the database. * Shouldn't be called before ClassDescriptor has been initialized. */ public boolean isPrimaryKeySetAfterInsert(AbstractSession session) { return (usesSequenceNumbers() && getSequence().shouldAcquireValueAfterInsert()) || (hasReturningPolicy() && getReturningPolicy().isUsedToSetPrimaryKey()); }