Created
October 15, 2014 18:19
-
-
Save gabanox/3a4582ec0301785d076b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final class ContactMapper implements RowMapper<Contact> { | |
public Contact mapRow(ResultSet rs, int rowNum) throws SQLException { | |
Contact contact = new Contact(); | |
contact.setId(rs.getLong("id")); | |
contact.setFirstName(rs.getString("first_name")); | |
contact.setLastName(rs.getString("last_name")); | |
contact.setBirthDate(rs.getDate("birth_date")); | |
return contact; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment