IntegratedSPIRepositoryImpl.java

package com.tradecloud.repository.impl;

import com.tradecloud.domain.integration.IntegratedSPI;
import com.tradecloud.repository.IntegratedSPIRepository;
import com.tradecloud.repository.base.impl.RepositoryBaseImpl;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Repository(value = "integratedSPIRepository")
@Transactional(propagation = Propagation.REQUIRED, isolation = Isolation.DEFAULT)
public class IntegratedSPIRepositoryImpl extends RepositoryBaseImpl<IntegratedSPI, Object> implements IntegratedSPIRepository {

    @Override
    public List<IntegratedSPI> findAllSortedById() {
        return (List<IntegratedSPI>) getNamedQuery("findAllSPISortedById");
    }
}