Hi,
We are representing the domain objects as entity beans (BMP) and using Hibernate3 as the persistence mechanism. :-)
The entity bean 'Deletegates' to a business object which then uses hibernate persistent objects.
e.g.
ABCPeristent.java {has all fields to be persisted}
ABCBean.java {the enity bean with create, finder, etc}
ABCBO.java {the delegate which has all hibernate code for CRUD on ABCPersistent using a DAO}
Is this a good design ? I did not want to use entity beans here, but sort of do not have any opttion but to use it.
I have done lot of search and have not found any one using this kind of design. I have faced some issues with this design but have been able to get it to a more or less stable place now.
Would appreciate any response/comments/guidelines on this.
Regards
|