arnaudroger / SimpleFlatMapper

Fast and Easy mapping from database and csv to POJO. A java micro ORM, lightweight alternative to iBatis and Hibernate. Fast Csv Parser and Csv Mapper
http://simpleflatmapper.org
MIT License
435 stars 76 forks source link

Allow partial match like column: abc_def_ghi -> prop: abcGhi.defGhi #678

Closed sndyuk closed 4 years ago

sndyuk commented 4 years ago

The partial matcher has allowed the matching:

This change is going to allow the matching too:

Since I want to map the case below without defining specific mapping: Columns on the table:

scheduled_start_date
scheduled_end_date

Entity

class Entity {
  DateRange scheduledDate;
}
class DateRange {
  Date startDate;
  Date endDate;
}

Please consider to merge it. Thanks!

arnaudroger commented 4 years ago

Thanks I’ll have a look

arnaudroger commented 4 years ago

I'll try to get that in, but right now it's breaking the tests

arnaudroger commented 4 years ago

merged as https://github.com/arnaudroger/SimpleFlatMapper/commit/18d5c2b1622eaedf79e5b6f45f9c738330d76dc4 a few fix for stack overflow and some clean up

arnaudroger commented 4 years ago

that's been released with version 8.0.0, thanks for the contribution!