Hi,

I have got a question quite unrelated to Struts: My app. is pretty much
layered, meaning, I have Hibernate, on top of which there are
SpringDAOs, on top of which are Managers that represent my business logic.

Now I wonder, if it is possible, to *hide* (maybe with annotations?) my
DAOs from all classes except my Managers. The reason for this is, that
my Managers use declarative transactions, therefore multiple DAOs can be
used in on session and I can initialize lazy collections. If DAOs are
used on their own, this will not work but result in tons of exceptions
instead.

Basically it boils down to the question, whether I can "hide" certain
classes in my API, so that potential users are forced to use the correct
way (via the manager classes).

Regards,
Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to