lavieri,
testei com o set e deu o seguinte resultado no console:
Hibernate: select usuario0_.id as id0_3_, usuario0_.criado as criado0_3_, usuario0_.demais_nome as demais3_0_3_, usuario0_.disponibiidade as disponib4_0_3_, usuario0_.disponibilidade as disponib5_0_3_, usuario0_.lista_disp_diario_arquivos as lista6_0_3_, usuario0_.lista_disp_diario_minutos as lista7_0_3_, usuario0_.lista_disp_total_arquivos as lista8_0_3_, usuario0_.lista_disp_total_minutos as lista9_0_3_, usuario0_.modificado as modificado0_3_, usuario0_.prefixo as prefixo0_3_, usuario0_.primeiro_nome as primeiro12_0_3_, usuario0_.qtde_arquivos as qtde13_0_3_, usuario0_.sufixo as sufixo0_3_, usuario0_.tamanho_maximo_arquivos as tamanho15_0_3_, usuario0_.tamanho_maximo_intervalo as tamanho16_0_3_, usuario0_.tamanho_maximo_minutos as tamanho17_0_3_, usuario0_.tat_maximo as tat18_0_3_, usuario0_.tipo as tipo0_3_, usuario0_.tipo_pessoa as tipo20_0_3_, usuario0_.tipo_usuario as tipo21_0_3_, usuario0_.ultimo_nome as ultimo22_0_3_, enderecos1_.usuario_id as usuario14_5_, enderecos1_.id as id5_, enderecos1_.id as id1_0_, enderecos1_.bairro as bairro1_0_, enderecos1_.cep as cep1_0_, enderecos1_.cidade as cidade1_0_, enderecos1_.complemento as compleme5_1_0_, enderecos1_.criado as criado1_0_, enderecos1_.endereco as endereco1_0_, enderecos1_.modificado as modificado1_0_, enderecos1_.numero as numero1_0_, enderecos1_.pais as pais1_0_, enderecos1_.principal as principal1_0_, enderecos1_.tipo_endereco as tipo12_1_0_, enderecos1_.uf as uf1_0_, enderecos1_.usuario_id as usuario14_1_0_, formadecon2_.usuario_id as usuario8_6_, formadecon2_.id as id6_, formadecon2_.id as id3_1_, formadecon2_.contato as contato3_1_, formadecon2_.criado as criado3_1_, formadecon2_.modificado as modificado3_1_, formadecon2_.observacao as observacao3_1_, formadecon2_.principal as principal3_1_, formadecon2_.tipo_formadecontato as tipo7_3_1_, formadecon2_.usuario_id as usuario8_3_1_, disponibil3_.id as id2_2_, disponibil3_.criado as criado2_2_, disponibil3_.data_fim as data3_2_2_, disponibil3_.data_inicio as data4_2_2_, disponibil3_.departamento_id as departam5_2_2_, disponibil3_.modificado as modificado2_2_, disponibil3_.teste as teste2_2_, disponibil3_.usuario_id as usuario8_2_2_ from stenovoice.usuario usuario0_ left outer join stenovoice.endereco enderecos1_ on usuario0_.id=enderecos1_.usuario_id left outer join stenovoice.formadecontato formadecon2_ on usuario0_.id=formadecon2_.usuario_id left outer join stenovoice.disponibilidade disponibil3_ on usuario0_.id=disponibil3_.usuario_id where usuario0_.id=?
org.hibernate.LazyInitializationException: illegal access to loading collection
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:363)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108)
at org.hibernate.collection.PersistentSet.hashCode(PersistentSet.java:434)
at br.com.stenovoice.entidade.Usuario.hashCode(Usuario.java:333)
at br.com.stenovoice.entidade.Endereco.hashCode(Endereco.java:199)
at java.util.HashMap.put(Unknown Source)
at java.util.HashSet.add(Unknown Source)
at java.util.AbstractCollection.addAll(Unknown Source)
at org.hibernate.collection.PersistentSet.endRead(PersistentSet.java:352)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollection(CollectionLoadContext.java:260)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:245)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:218)
at org.hibernate.loader.Loader.endCollectionLoad(Loader.java:900)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:888)
at org.hibernate.loader.Loader.doQuery(Loader.java:752)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
at br.com.stenovoice.dao.HibernateCRUDUtils.getById(HibernateCRUDUtils.java:99)
at br.com.stenovoice.dao.BaseDAO.getByPrimaryKey(BaseDAO.java:37)
at br.com.stenovoice.teste.EnderecoTeste.main(EnderecoTeste.java:12)
Exception in thread "main" br.com.stenovoice.exception.DAOException: org.hibernate.LazyInitializationException: illegal access to loading collection
at br.com.stenovoice.dao.HibernateCRUDUtils.getById(HibernateCRUDUtils.java:105)
at br.com.stenovoice.dao.BaseDAO.getByPrimaryKey(BaseDAO.java:37)
at br.com.stenovoice.teste.EnderecoTeste.main(EnderecoTeste.java:12)
Caused by: org.hibernate.LazyInitializationException: illegal access to loading collection
at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:363)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:108)
at org.hibernate.collection.PersistentSet.hashCode(PersistentSet.java:434)
at br.com.stenovoice.entidade.Usuario.hashCode(Usuario.java:333)
at br.com.stenovoice.entidade.Endereco.hashCode(Endereco.java:199)
at java.util.HashMap.put(Unknown Source)
at java.util.HashSet.add(Unknown Source)
at java.util.AbstractCollection.addAll(Unknown Source)
at org.hibernate.collection.PersistentSet.endRead(PersistentSet.java:352)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollection(CollectionLoadContext.java:260)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:245)
at org.hibernate.engine.loading.CollectionLoadContext.endLoadingCollections(CollectionLoadContext.java:218)
at org.hibernate.loader.Loader.endCollectionLoad(Loader.java:900)
at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:888)
at org.hibernate.loader.Loader.doQuery(Loader.java:752)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)
at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)
at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:842)
at org.hibernate.impl.SessionImpl.get(SessionImpl.java:835)
at br.com.stenovoice.dao.HibernateCRUDUtils.getById(HibernateCRUDUtils.java:99)
... 2 more