New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite mapping with Hibernate Bug #190
Comments
@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. Before
After, I switched for the DozerMapper/dozer plugin (this repository)
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. |
Hello, I cereated an issue for it: https://github.com/DozerMapper/dozer/issues/704 Can you please help. |
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.
The text was updated successfully, but these errors were encountered: