chore: Remove commented out code for dataset search
This commit is contained in:
		@@ -75,10 +75,6 @@ public class DatasetService {
 | 
			
		||||
        datasetRepository.save(dataset);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    //public List<Dataset> getDatasetsBy(String title, String author, String abst, String description) {
 | 
			
		||||
    //    return datasetRepository.findBy(title, author, abst, description);
 | 
			
		||||
    //}
 | 
			
		||||
 | 
			
		||||
    public List<Dataset> getDatasetsByOptionalCriteria(String title, String description, String author, String abst,
 | 
			
		||||
            Type type, Float raiting) {
 | 
			
		||||
        String[] categories = null;
 | 
			
		||||
 
 | 
			
		||||
@@ -27,10 +27,6 @@ public interface dataRepository extends JpaRepository<Dataset, UUID>{
 | 
			
		||||
    List<Dataset> findByDateBetween(Date date1, Date date2);
 | 
			
		||||
    List<Dataset> findAll();
 | 
			
		||||
 | 
			
		||||
    //@Query("SELECT d FROM Dataset d WHERE d.title LIKE :title AND d.author LIKE :author AND d.abst LIKE :abst AND d.description LIKE :description")
 | 
			
		||||
    //List<Dataset> findBy(@Param("title") String title, @Param("author") String author, @Param("abst") String abst, @Param("description") String description);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    @Query("SELECT d FROM Dataset d WHERE " +
 | 
			
		||||
    "(COALESCE(:title, '') = '' OR d.title LIKE :title) AND " +
 | 
			
		||||
    "(COALESCE(:description, '') = '' OR d.description LIKE :description) AND" +
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user