Class VersionHibernateDao

java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
com.atlassian.bamboo.versioning.VersionHibernateDao
All Implemented Interfaces:
VersionDao, org.springframework.beans.factory.InitializingBean

public class VersionHibernateDao extends StatelessSessionHibernateDaoSupport implements VersionDao
This is the read only DAO, the versions should never be updated by this DAO.
  • Constructor Details

    • VersionHibernateDao

      public VersionHibernateDao()
  • Method Details

    • getVersions

      @NotNull public <T extends Versionable> @NotNull List<IdWithVersionDto> getVersions(@NotNull @NotNull Set<Long> ids, @NotNull @NotNull Class<? extends T> clazz)
      Description copied from interface: VersionDao
      Gets the versions corresponding to the given ids and the class.
      Specified by:
      getVersions in interface VersionDao
      Parameters:
      ids - list of entity ids for which the versions will be gathered for
      clazz - class of the versionable entity
      Returns:
      list of entity id and version