What would be the disadvantages of using the builder design pattern. Are there any??
edit - I want to know whether there is any bad consequence of using builder design pattern? As in the GOF book, they have mentioned the good and bad consequences of design patterns. But they haven't mentioned any bad consequence for builder design pattern.
It does create more code (and could introduce more complexity) in the DTO than if you had for example contructor arguments and/or setters/getters.
In my opinion this is not a big deal, in most cases there is not a lot of extra code. The builder pattern will be more than worth it if you have an object that has some mandatory and some optional parameters.