Eclipselink slow on merge - Register the existing object [message #1864559] |
Mon, 25 March 2024 09:29 |
Eclipse User |
|
|
|
I have this issue when updating the entity that contains the list of another entity. It takes a lot of time. Enabling the logs, I noticed that there are many updates of the following type:
UnitOfWork(262510274)--Thread(Thread[default task-1,5,main])--Register the existing object persistence.entity.PpHeader[ idPpHeader=46587832 ]
As many as there are records in the list of the OneToMany part, even though the list is null, due to the LAZY annotation.
@Entity
@Table(name = "PARAMETER_LINE")
@XmlRootElement
public class ParameterLine implements Serializable {
.
.
.
@OneToMany(mappedBy = "parameterLine", fetch = FetchType.LAZY)
@XmlTransient
private List<PpHeader> lstPpHeader;
}
@Entity
@Table(name = "PP_HEADER")
@XmlRootElement
public class PpHeader implements Serializable {
.
.
..
@JoinColumn(name = "ID_PARAM_LINE", referencedColumnName = "ID_PARAM_LINE")
@ManyToOne(optional = false, fetch = FetchType.LAZY)
private ParameterLine parameterLine;
}
Do you have any suggestion?
|
|
|
Powered by
FUDForum. Page generated in 0.02889 seconds