The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

ManningForumUser (3) [Avatar] Offline
#1
Hello,
Does anyone have code samples of POJOs being more than just dumb entities (merely setters and getters) ? I am specifically looking for examples that the author mentions in the book on page 15-Template Method pattern can be used in POJO design. If anyone has any code samples I would be interested in learning about them.
Regards,
Aswin.
ceracm (113) [Avatar] Offline
#2
Re: Examples of POJOs with behavior
The source code for the POJO has examples of classes with business logic. E.g.
* PendingOrder
* Account has business logic and delegates to the OverdraftPolicy Strategy

You might want to google for examples of design patterns to see other examples.

Chris