class HibernateMetadataVersionStore extends HibernateIdentifiableObjectStore<MetadataVersion> implements MetadataVersionStore {

    @Override
    public List<MetadataVersion> getAllVersionsInBetween( Date startDate, Date endDate )
    {
        CriteriaBuilder builder = getCriteriaBuilder();

        return getList( builder, newJpaParameters()
            .addPredicate( root -> builder.between( root.get( "created" ), startDate, endDate ) ) );
    }

    public  HibernateMetadataVersionStore( SessionFactory sessionFactory, JdbcTemplate jdbcTemplate,
        ApplicationEventPublisher publisher, CurrentUserService currentUserService, AclService aclService );

}