All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.search.FullTextSharedSessionBuilder Maven / Gradle / Ivy

Go to download

Helper to migrate from Hibernate Search 5 to 6, providing partial support for Hibernate Search 5 ORM APIs on top of Hibernate Search 6

There is a newer version: 8.0.0.Alpha1
Show newest version
/*
 * Hibernate Search, full-text search for your domain model
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.search;

import java.sql.Connection;

import jakarta.persistence.EntityManager;

import org.hibernate.Interceptor;
import org.hibernate.Session;
import org.hibernate.SharedSessionBuilder;
import org.hibernate.search.mapper.orm.session.SearchSession;

/**
 * @author Emmanuel Bernard
 * @deprecated Will be removed without replacement, as Hibernate Search sessions ({@link SearchSession})
 * no longer extend JPA's {@link EntityManager} interface or Hibernate ORM's {@link Session}.
 * To get access to a Hibernate Search 6 session, use {@link org.hibernate.search.mapper.orm.Search#session(Session)}.
 */
@Deprecated
public interface FullTextSharedSessionBuilder extends SharedSessionBuilder {
	@Override
	FullTextSharedSessionBuilder interceptor();

	@Override
	FullTextSharedSessionBuilder connection();

	@Deprecated
	@Override
	FullTextSharedSessionBuilder connectionReleaseMode();

	@Override
	FullTextSharedSessionBuilder autoJoinTransactions();

	@Override
	FullTextSharedSessionBuilder autoClose();

	@Override
	FullTextSharedSessionBuilder interceptor(Interceptor interceptor);

	@Override
	FullTextSharedSessionBuilder noInterceptor();

	@Override
	FullTextSharedSessionBuilder connection(Connection connection);

	@Override
	FullTextSharedSessionBuilder autoJoinTransactions(boolean autoJoinTransactions);

	@Deprecated
	@Override
	FullTextSharedSessionBuilder autoClose(boolean autoClose);

	@Override
	FullTextSession openSession();

	@Deprecated(forRemoval = true)
	@Override
	FullTextSharedSessionBuilder tenantIdentifier(String tenantIdentifier);

	@Override
	FullTextSharedSessionBuilder tenantIdentifier(Object tenantIdentifier);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy