I am developing a piece of my company's architecture for my Java EE web applications. I explain quite clearly the reasons for using a facade and one or more DAOs. I have a problem:
There will be a certain logic, which definitely belongs to the level of integration, because all this concerns the coordination of the data model. In addition, the logic goes beyond simply maintaining referential integrity and other raw storage tasks that will be handled by JPA and Hibernate. I do not classify this as business logic because it is separate from any business function. However, I understand that a DAO should only implement the logic needed to access and store objects in a data source.
My conclusion is that I need a business object template that is suitable for the integration level. I looked around, and the closest I found (but still not quite right) is the Sun Transfer Object Assembler Template .
Is there a gap in my understanding of Java EE or is there a pattern that will fit.
java java-ee design-patterns
James watt
source share