It is sufficient to do this:
Code:
class MyStatelessSessionBean {
public Client getFirstClient () {
// open Session...
Client client = (Client)(session.find("from Client client where client.id='foo'").get(0));
Hibernate.initialize(client.getCampaigns());
If you really have detatched objects (e.g. sending the objects to a swing application) you have to ensure the client side code does not hit any uninitialized collections, otherwise you get an Exception. If you are still in the server environment (e.g. Servlets, JSP) you should take a look at the Open Session in View pattern in the Wiki Community area.