MetaTargetTypeService

This commit is contained in:
insanity 2018-06-15 17:04:19 +09:00
parent 95fb581bae
commit 1381c41478
3 changed files with 8 additions and 1 deletions

View File

@ -51,7 +51,7 @@
<dependency>
<groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId>
<version>1.0.82-SNAPSHOT</version>
<version>1.0.83-SNAPSHOT</version>
</dependency>
<dependency>

View File

@ -2,6 +2,7 @@ package com.loafle.overflow.central.module.meta.service;
import com.loafle.overflow.central.module.meta.dao.MetaTargetTypeDAO;
import com.loafle.overflow.core.exception.OverflowException;
import com.loafle.overflow.model.meta.MetaInfraType;
import com.loafle.overflow.model.meta.MetaTargetType;
import com.loafle.overflow.service.central.meta.MetaTargetTypeService;
@ -33,4 +34,9 @@ public class CentralMetaTargetTypeService implements MetaTargetTypeService {
public List<MetaTargetType> readAll() throws OverflowException {
return this.metaTargetTypeDAO.findAll();
}
@Override
public List<MetaTargetType> readAllByMetaInfraType(MetaInfraType metaInfraType) throws OverflowException {
return this.metaTargetTypeDAO.findAllByMetaInfraType(metaInfraType);
}
}

View File

@ -13,6 +13,7 @@ import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;
/**
* Created by snoop on 17. 9. 14.