G2A Many GEOs
SHARE
TWEET

Untitled

Latinist Apr 10th, 2020 162 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public List<User> getAllUsers() {
  2.         final RowMapper<User> userMapper =
  3.                 (rs, i) -> new User(rs.getLong("user_id"),
  4.                         rs.getString("name"),
  5.                         rs.getString("email"));
  6.  
  7.         return this.template.query(
  8.                 "select * from test_jdbc.public.user",
  9.                 userMapper);
  10.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top