jeudi 30 mars 2017

Design Pattern to use existing classes

I am at the moment struggling with which design pattern should I use. My situation is as follows:

  1. I have a few existing classes e.g. Address, Client and Invoices.

  2. I need to create a class let's say a javabean that comprises possibly all fields from above mentioned classes as its getters and setters.

  3. Later on, I can create a object of the javabean and assign it to a Jasperreport as its datasource.

Can anyone suggest me which design pattern would ease my job as I don't want to reinvent the wheel? Thank you.

Aucun commentaire:

Enregistrer un commentaire