anaptecs / jeaf-generator

JEAF Generator uses UML models to generate code for Spring, REST, OpenAPI, Java and others. Boost your software development efficiency and time-to-market. Bye bye handwritten boiler blade code.
https://www.jeaf-generator.io
Apache License 2.0
2 stars 1 forks source link

Copy-Builder breaks encapsulation (for POJO with customImpl) #123

Closed robinste closed 5 months ago

robinste commented 5 months ago

Description

POJO classes with "hasCustomImplementation=true" have a Copy-Builder that modifies collections in the source object.

The same bug has been fixed for regular POJO in v1.13.2 with Fix "JEAF-3272 Copy-Builder breaks encapsulation"


Screenshots

Here's the diff when switching a POJO to "hasCustomImplementation=true".

CopyBuilderDiff