package com.northglass.repository;
|
|
|
import java.util.List;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.Query;
|
|
import com.northglass.entity.PreprocessingGlass;
|
|
public interface PreprocessingGlassDao extends JpaRepository<PreprocessingGlass, Long> {
|
|
//
|
// @Query("select c from CardNumber c where c.state = '" + ManufactureBatchState.IN_WORK + "'")
|
// public CardNumber findByWorking();
|
|
@Query("select c from PreprocessingGlass c")
|
public List<PreprocessingGlass> findByWorking();
|
|
@Query("select c from PreprocessingGlass c where c.groups=?1")
|
public PreprocessingGlass findBygroup(int groups);
|
//
|
|
}
|