Merge pull request #8501 from cxmshine/master

update AddressMapper.java
This commit is contained in:
Loredana Crusoveanu 2020-04-29 11:14:29 +03:00 committed by GitHub
commit c3b4907a4c
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ public interface AddressMapper {
@Results(value = { @Result(property = "addressId", column = "addressId"),
@Result(property = "streetAddress", column = "streetAddress"),
@Result(property = "person", column = "personId", javaType = Person.class, one = @One(select = "getPerson")) })
Address getAddresses(Integer addressID);
Address getAddresses(Integer addressId);
@Select("SELECT personId FROM address WHERE addressId = #{addressId})")
Person getPerson(Integer personId);
Person getPerson(Integer addressId);
}