Class DataAccessUtils


  • public final class DataAccessUtils
    extends Object
    Provides hibernate and database helper operations.
    Since:
    6.2.0
    • Method Detail

      • getJdbcTemplate

        public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate​(org.hibernate.Session session)
        Returns a JDBC template for the provided Hibernate session. The JDBC template participates in the same transaction as the session.
        Since:
        7.18
      • getDialect

        @Deprecated(since="8.0",
                    forRemoval=true)
        public static org.hibernate.dialect.Dialect getDialect()
                                                        throws org.springframework.dao.DataAccessException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Gets the Dialect object corresponding to the current Hibernate configuration
        Throws:
        org.springframework.dao.DataAccessException
        Since:
        6.4.1