Skip to content

sarkhanrasullu/jdbcObjectMapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Suppose that our ResultSet represent such columns. These columns selected from some joins of tables(payment,user,company) and these columns are in one query result: id,payment_date,payment_amount, user_id,user_name, user_surname, company_id, company_name

and we need to map these columns to Payment object. By default we need to do: Payment payment = new Payment(); payment.setId(rs.getInt("payment_id"); ... etc.

** ResultSet rs = null;//your result set comes from jdbc query **
** List payments = ResultSetMapper.mapRersultSetToList(rs, Payment.class);// if it is not list use mapRersultSetToObject **
** please check inside of Payment class. **

About

JDBC ResultSet Object Mapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages