Closed BenDol closed 7 years ago
@BenDol ; is this still an issue?
Closing due to inactivity.
Do you have a solution, I almost tried all the solution in the stackoverflow, ... and other forums, but none of them worked for me. I have the same issue
@eloufirhatim ; see the below. Someone else has hit a similar:
@garethahealy thanks for your reply. I was using the Dozer
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer</artifactId>
<version>${dozer.version}</version>
</dependency>
<dependency>
<groupId>net.sf.dozer</groupId>
<artifactId>dozer-spring</artifactId>
<version>${dozer.version}</version>
</dependency>
<dependency>
<groupId>com.github.dozermapper</groupId>
<artifactId>dozer-core</artifactId>
<version>${dozer.version}</version>
</dependency>
<dependency>
<groupId>com.github.dozermapper</groupId>
<artifactId>dozer-spring4</artifactId>
<version>${dozer.version}</version>
</dependency>
I thought I was using this from the begining 😄
But, can you explain to me the difference between these two libraries please? They are identical ? because, their configuration are pretty the same.
Thanks in advance.
Its the same project, but because of migrating to github and no longer controlling the sf site, the GAV changed.
Ok, thank you for the information. Now all is working perfectly 😃
Hello, The same issue is back again, when debugging I see that my object is not mapped like I configured in the XML mapping file, but what is weird, is when I restart the server... It works juste fine.
I cereated an issue for it: https://github.com/DozerMapper/dozer/issues/704
Can you please help. Thanks in advance
I have an object that I am mapping called IncidentEntity, which is an Entity object in Hibernate. This object has a number of other Entity relationships for example SectionEntity and ProcessEntity. I have spent a lot of time setting up Dozer so it will deal with the lazy loading on Set's and on Join relationships.
These two work for the most part. But for some reason its not working on the IncidentEntity after I manually lazy load the ProcessEntity (or SectionEntity) then attempt to map the object. I get an infinite mapping of a ProcessEntity which has a Set of SectionEntity objects and a SectionEntity has a ProcessEntity so it has this infinite recursive map issue (even though in theory it shouldn't happen).
Tested on 5.5.1
IncidentEntity.java
ProcessEntity.java
SectionEntity.java
Am I missing something? I have debugged the IncidentEntity object that I am mapping to make sure it hasn't recursively loaded before it is even sent off to be mapped and it hasn't.
Log output:
I have no idea how to reproduce this issue but I'm farely sure it is a bug somewhere.