package cokr.xit.ens.modules.ktsigntalk.direct.domain.repository;

import cokr.xit.ens.modules.common.biztmplt.CleanRepositorySupport;
import cokr.xit.ens.modules.common.code.UseNativeQuery;
import com.querydsl.jpa.impl.JPAQueryFactory;
import lombok.RequiredArgsConstructor;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

public class SendDetailKtSigntalkStatHistRepositoryImpl implements CleanRepositorySupport {
    @PersistenceContext
    private EntityManager em;

    @Override
    public void truncate() {
        em.createNativeQuery("truncate table " + UseNativeQuery.SendDetailKtSigntalkStatHist.getTblNm()).executeUpdate();
    }
}
