ing
This commit is contained in:
		
							parent
							
								
									e8ecaefb92
								
							
						
					
					
						commit
						7e13d150ec
					
				@ -10,4 +10,5 @@ import org.springframework.stereotype.Repository;
 | 
			
		||||
 | 
			
		||||
@Repository
 | 
			
		||||
public interface MetaSensorStatusDAO extends JpaRepository<MetaSensorStatus, Short> {
 | 
			
		||||
  MetaSensorStatus findByKey(String key);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -21,4 +21,14 @@ public class CentralMetaSensorStatusService implements MetaSensorStatusService {
 | 
			
		||||
  public List<MetaSensorStatus> readAll() throws OverflowException {
 | 
			
		||||
    return this.sensorStatusDAO.findAll();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @Override
 | 
			
		||||
  public MetaSensorStatus regist(MetaSensorStatus metaSensorStatus) throws OverflowException {
 | 
			
		||||
    return this.sensorStatusDAO.save(metaSensorStatus);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  @Override
 | 
			
		||||
  public MetaSensorStatus readByKey(String key) throws OverflowException {
 | 
			
		||||
    return this.sensorStatusDAO.findByKey(key);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user