Created
March 13, 2018 15:33
-
-
Save pablocloud/dce1e29669752c5b9a163b659913cdf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.besuricata.rest.services.impl; | |
import com.besuricata.rest.domain.Suricata; | |
import com.besuricata.rest.repositories.SuricataRepository; | |
import com.besuricata.rest.services.BasicServiceAbstract; | |
import org.springframework.stereotype.Service; | |
import java.util.Collection; | |
@Service | |
public class SuricataService extends BasicServiceAbstract<Suricata, Long> { | |
public SuricataService(SuricataRepository suricataRepository) { | |
this.repository = suricataRepository; | |
} | |
public Suricata findSuricataByName(String name) { | |
return ((SuricataRepository) repository).findByName(name); | |
} | |
public Collection<Suricata> findAllByMinimunHeight(Double height) { | |
return ((SuricataRepository) repository).findAllByHeightGreaterThanEqual(height); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment