projectlombok / lombok

Very spicy additions to the Java programming language.
https://projectlombok.org/
Other
12.83k stars 2.37k forks source link

Remove DTO class from project #698

Open lombokissues opened 9 years ago

lombokissues commented 9 years ago

Migrated from Google Code (issue 663)

lombokissues commented 9 years ago

:bust_in_silhouette: muratayengin   :clock8: Apr 03, 2014 at 14:30 UTC

NEW FEATURE:

Applications needs to transfer model objects to view mostly using dto objects. Such as if a have a Book JPA entity class and want to transfer some of properties of this class to view i need to create a BookDTO class and map needed properties to this new dto class. İf project lombok have an annotation like @ View(BookDTO1:{name ,writer},BookDTO2:{name ,writer,isin,year}) ,applications dont need to contain dto layer expilicitly.Lombok can generate this classes at compile time .

lombokissues commented 9 years ago

:bust_in_silhouette: reinierz   :clock8: Apr 29, 2014 at 19:59 UTC

That sounds like a job for normal annotation processors, though.

lombokissues commented 9 years ago

:bust_in_silhouette: muratayengin   :clock8: Apr 30, 2014 at 14:16 UTC

@ View annotation needs to generate BookDTO1 ,BookDTO2 ... BookDTOn at compile time so values can be mapped to this class (for example using dozer framework.)

lombokissues commented 9 years ago

End of migration