- 
        1. Re: Obtaining null when trying to get a related entity mapped as @ManyToOneadamw Jan 5, 2011 12:25 PM (in response to andre.botelho)If there was a team at that revision, then the query should find it. Maybe you could try creating an Envers test case, to verify that this is indeed a bug? Adam 
- 
        2. Obtaining null when trying to get a related entity mapped as @ManyToOneandre.botelho Jan 13, 2011 8:39 AM (in response to adamw)Adam, I finally understood what was going on. I wasn't paying attention on my DAOs mapping. When I execute "Worker workerRevision = (Worker) query.getSingleResult();" the query indeed find the responsibleTeam, however the object workerRevision was with his variables setted as null but with the right proxy on the trigger, throwing session closed exceptions when I tried to access these values in another layer. So I just added "Hibernate.initialize(regra.getResponsibleTeam)" and all worked well. This is not a bug but a innocent mistake that I made.Sorry for the trouble. 
- 
        3. Obtaining null when trying to get a related entity mapped as @ManyToOneadamw Jan 13, 2011 10:20 AM (in response to andre.botelho)Great to hear that it's working Adam 
 
    