Note Mapper returns null

@Select("SELECT * FROM url WHERE code = -sharp{code}")
    Url findByCode(@Param("code") String code);
    
    
Url url1 = urlMapper.findByCode("fuck");

returns null all select queries are, it"s strange that I"ve tried to set field names and so on. The SQL executed by
is normal.

Mar.18,2021

  1. @ Mapper learn about
  2. is the field mapping out of order? Are database fields consistent with JavaBean?

Database has no data

Menu