DTO to Entity Mapping Tool

前端 未结 2 1381
清歌不尽
清歌不尽 2021-02-08 23:45

I have an entity class Person and its corresponding DTO class PersonDto.

public class Person: Entity
{
  public virtual string Name { g         


        
2条回答
  •  醉酒成梦
    2021-02-09 00:14

    You can use GeDA for mapping any entity to a DTO object, it comes with either annotations or DSL support.

    http://inspire-software.com/confluence/display/GeDA/FAQ

    There are only basic examples on the wiki but jUnits of source code are full of useful examples

    You can get it from sourceforge or google code manually or via maven dependency

    Details are here: http://inspire-software.com/confluence/display/GeDA/GeDA+-+Generic+DTO+Assembler

提交回复
热议问题