Skip to content

Commit

Permalink
fix: backend checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ramesz6 committed Sep 19, 2024
1 parent 5ebc9c5 commit 909c641
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package com.greenfoxacademy.backend.models;

import jakarta.persistence.*;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.Data;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.greenfoxacademy.backend.models;

import jakarta.persistence.*;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import lombok.Data;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.greenfoxacademy.backend.models;

import jakarta.persistence.*;
import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import java.util.Collection;
import java.util.List;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public VetListResponseDto getAll(String word) {

List<ClinicAddress> clinicAddressList = clinicAddressRepository
.findAllByZipContainingOrCityContainingOrStreetContaining(
word , word, word);
word, word, word);

vetList.addAll( clinicAddressList.stream()
vetList.addAll(clinicAddressList.stream()
.map(a -> a.getClinicDetails().getVet()).toList());

vetList.addAll(clinicDetailsRepository.findAllByClinicNameContaining(word)
Expand Down

0 comments on commit 909c641

Please sign in to comment.