package com.tykj.workflowcore.model.repository;

import com.tykj.workflowcore.model.entity.ColumnInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface ColumnInfoRepository extends JpaRepository<ColumnInfo, Integer> {

    List<ColumnInfo> findByTableInfoId(Integer tableInfoId);

    @Transactional
    void deleteAllByTableInfoId(Integer tableInfoId);

}
