Aktywne Wpisy

frugASS +113
źródło: temp_file5274769737786707985
Pobierz
rvtzkv +31
Ah shit, here we go again... #gry #masseffect
źródło: temp_file5945931916235764751
PobierzSkopiuj link
Skopiuj link
źródło: temp_file5274769737786707985
Pobierz
źródło: temp_file5945931916235764751
PobierzWykop.pl
Da sie ogarnac w spring data metode exist, ktora wyrzuci true tylko przy JEDNYM wierszu spelniajacym dwa podane kryteria? Probowalem to zrobic w ten sposob, ale rzuca true takze gdy posiadam jeden wiersz spelniajacy warunek numer jeden i drugi wiersz spelniajacy warunek numer dwa :/.
@Repository
public interface JdbcImageSpringRepository extends CrudRepository {
boolean existsByOriginAndRegisterDate(Origin origin, LocalDate registerDate);
}
#spring #spring-data #java
@Query()nad metodą i bezpośrednio nie zadeklarujesz co dokładnie chcesz w zapytaniu SQL?