Spring Cleaning in December
- Delete unused imports - Delete unused code - Clean up warnings
This commit is contained in:
@@ -107,7 +107,6 @@ import org.springframework.util.Assert;
|
||||
* @deprecated as of Spring 4.3, in favor of Hibernate 4.x/5.x
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings("deprecation")
|
||||
public class HibernateTemplate extends HibernateAccessor implements HibernateOperations {
|
||||
|
||||
private boolean allowCreate = true;
|
||||
|
||||
@@ -477,7 +477,6 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void doBegin(Object transaction, TransactionDefinition definition) {
|
||||
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
|
||||
|
||||
@@ -710,7 +709,6 @@ public class HibernateTransactionManager extends AbstractPlatformTransactionMana
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void doCleanupAfterCompletion(Object transaction) {
|
||||
HibernateTransactionObject txObject = (HibernateTransactionObject) transaction;
|
||||
|
||||
|
||||
@@ -873,7 +873,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
new HibernateCallback<Object>() {
|
||||
@Override
|
||||
public Object doInHibernate(Session session) throws HibernateException, SQLException {
|
||||
@SuppressWarnings("deprecation")
|
||||
Connection con = session.connection();
|
||||
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect);
|
||||
String[] sql = getConfiguration().generateSchemaUpdateScript(dialect, metadata);
|
||||
@@ -919,7 +918,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
new HibernateCallback<Object>() {
|
||||
@Override
|
||||
public Object doInHibernate(Session session) throws HibernateException, SQLException {
|
||||
@SuppressWarnings("deprecation")
|
||||
Connection con = session.connection();
|
||||
DatabaseMetadata metadata = new DatabaseMetadata(con, dialect, false);
|
||||
getConfiguration().validateSchema(dialect, metadata);
|
||||
@@ -957,7 +955,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
new HibernateCallback<Object>() {
|
||||
@Override
|
||||
public Object doInHibernate(Session session) throws HibernateException, SQLException {
|
||||
@SuppressWarnings("deprecation")
|
||||
Connection con = session.connection();
|
||||
String[] sql = getConfiguration().generateDropSchemaScript(dialect);
|
||||
executeSchemaScript(con, sql);
|
||||
@@ -995,7 +992,6 @@ public class LocalSessionFactoryBean extends AbstractSessionFactoryBean implemen
|
||||
new HibernateCallback<Object>() {
|
||||
@Override
|
||||
public Object doInHibernate(Session session) throws HibernateException, SQLException {
|
||||
@SuppressWarnings("deprecation")
|
||||
Connection con = session.connection();
|
||||
String[] sql = getConfiguration().generateSchemaCreationScript(dialect);
|
||||
executeSchemaScript(con, sql);
|
||||
|
||||
@@ -513,7 +513,6 @@ public abstract class SessionFactoryUtils {
|
||||
* @param entityInterceptor Hibernate entity interceptor, or {@code null} if none
|
||||
* @return the new Session
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public static Session getNewSession(SessionFactory sessionFactory, Interceptor entityInterceptor) {
|
||||
Assert.notNull(sessionFactory, "No SessionFactory specified");
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ import org.hibernate.persister.entity.EntityPersister;
|
||||
* @deprecated as of Spring 4.3, in favor of Hibernate 4.x/5.x
|
||||
*/
|
||||
@Deprecated
|
||||
@SuppressWarnings({"serial", "rawtypes", "deprecation"})
|
||||
@SuppressWarnings({"serial", "rawtypes"})
|
||||
public class IdTransferringMergeEventListener extends DefaultMergeEventListener {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user