The setting is a typical MVC J2EE application, with DAOs for data access.
There are a number of type entities, for instance for a Product bean there is a ProductType member bean, both persisted.
When I am persisting a Product bean, I want to populate it with ProductType info. I have the status code, but do I have to go to the database to retrieve the entire ProductType bean just to populate the Product with type data? Is there a pattern to deal with this kind of type info situation?
I don't want a separate DAO for each of my types, but if I have to pull them explicitly (not implicitly through Product, for example) then I will need one.
Options? Thanks!