Skip to content

madz0/spring-binder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBinder is a binder of objects to JPA entities

With spring-binder you'd get rid of writing the boilerplate codes to map posted DTO objects to JPA entity models and save them to database in Spring Framework. It supports both x-www-form-urlencoded/multipart forms and REST requests.

Have you ever used or heard libraries like ModelMapper? There are samples to map DTO objects to entities using ModelMapper.

Well, we do that in a more efficient and clever way. Using ModelMapper you need to first desrialize data to DTO object then use ModelMapper to access properties and create mapping.

This is somehow inefficient because the reflection is applied two times.

With SpringBinder, wile the object is getting deserilized, the mapping is applied.

Besides that, there are some other cool features like using entity graph and serilize/deserilize customization

Releases

No releases published

Packages

No packages published

Languages