This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
In my assignment, one of the Entity should be created with data which would be (combination of partly data from 2 entities).
To combine the data and set few more Entity specific data, I am planning to use Builder pattern in SLSB.
Is this a common practice or should be avoided?
If allowed, can I use it like this:
So I end up instantiating the entity in the builder. Is that acceptable ?
SCJP SCWCD OCMJEA
Joined: Dec 22, 2009
JPA entities are simply java objects until in "managed" state by EntityManager.
So do applying builder pattern for it, sounds okay ? A simple YES/NO would be appreciated.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Can I use Builder Pattern for creating Entities?