Skip to content

Commit

Permalink
update AddressMapper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
cxmshine committed Jan 9, 2020
1 parent 06f4ace commit aae0270
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit aae0270

Please sign in to comment.