HHH-18139 remove IdentifierGeneratorFactory from javadoc
+ a couple of other minor things Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
29f205dea2
commit
dfed5a9d25
|
@ -51,8 +51,6 @@ import static org.hibernate.generator.EventTypeSets.INSERT_ONLY;
|
|||
* using {@link org.hibernate.annotations.GenericGenerator#parameters()}.
|
||||
* </ul>
|
||||
* <p>
|
||||
* Instances of {@code IdentifierGenerator} are usually created and configured
|
||||
* by the {@link org.hibernate.id.factory.IdentifierGeneratorFactory} service.
|
||||
* It's not usually correct to use an {@code IdentifierGenerator} with the
|
||||
* {@link org.hibernate.annotations.IdGeneratorType} meta-annotation.
|
||||
*
|
||||
|
@ -150,7 +148,7 @@ public interface IdentifierGenerator extends BeforeExecutionGenerator, Exportabl
|
|||
*
|
||||
* @deprecated this method is no longer called
|
||||
*/
|
||||
@Deprecated(since="6.2")
|
||||
@Deprecated(since="6.2", forRemoval = true)
|
||||
default boolean supportsJdbcBatchInserts() {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -557,7 +557,6 @@ public class SequenceStyleGenerator
|
|||
|
||||
private String determineContributor(Properties params) {
|
||||
final String contributor = params.getProperty( IdentifierGenerator.CONTRIBUTOR_NAME );
|
||||
|
||||
return contributor == null ? "orm" : contributor;
|
||||
}
|
||||
|
||||
|
|
|
@ -555,7 +555,6 @@ public class TableGenerator implements PersistentIdentifierGenerator {
|
|||
getFactory().getJdbcServices()
|
||||
.getSqlStatementLogger();
|
||||
final SessionEventListenerManager statsCollector = session.getEventListenerManager();
|
||||
|
||||
return optimizer.generate(
|
||||
new AccessCallback() {
|
||||
@Override
|
||||
|
@ -570,7 +569,6 @@ public class TableGenerator implements PersistentIdentifierGenerator {
|
|||
true
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTenantIdentifier() {
|
||||
return session.getTenantIdentifier();
|
||||
|
|
|
@ -1364,9 +1364,8 @@ public abstract class BaseSqmToSqlAstConverter<T extends Statement> extends Base
|
|||
Expression discriminatorExpression = null;
|
||||
BasicEntityIdentifierMapping identifierMapping = null;
|
||||
// We use the id property name to null the identifier generator variable if the target paths contain the id
|
||||
final String identifierPropertyName;
|
||||
Generator identifierGenerator = entityDescriptor.getGenerator();
|
||||
identifierPropertyName = identifierGenerator != null ? entityDescriptor.getIdentifierPropertyName() : null;
|
||||
final String identifierPropertyName = identifierGenerator != null ? entityDescriptor.getIdentifierPropertyName() : null;
|
||||
final String versionAttributeName;
|
||||
boolean needsVersionInsert;
|
||||
if ( entityDescriptor.isVersioned() ) {
|
||||
|
|
Loading…
Reference in New Issue