java - Mapper code generation -


there many mapper tools available pojo , dto. check link: any tool java object object mapping? there tool generates dao, service classes automatically?

dozer sample:

<mapping>   <class-a>yourpackage.sourceclassname</class-a>   <class-b>yourpackage.destinationclassname</class-b>     <field>       <a>yoursourcefieldname</a>       <b>yourdestinationfieldname</b>     </field> </mapping>  sourceclassname sourceobject = ... mapper mapper = new dozerbeanmapper(); destinationobject destobject =     mapper.map(sourceobject, destinationclassname.class); asserttrue(destobject.getyourdestinationfieldname().equals(sourceobject.getyoursourcefieldname)); 

here xml configuration fine, can skip code part , specify pojo-dto configuration or pojo-dto along-with filter configuration. , tool should able automatically generate intermediate translation code in form of dao , service classes. there such tools available?


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -