Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Eclipselink slow on merge - Register the existing object(Register the existing object)
Eclipselink slow on merge - Register the existing object [message #1864559] Mon, 25 March 2024 09:29
Eclipse UserFriend
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?
Previous Topic:Delete operation calling update statement to make foreign key field to null
Next Topic:createnativequery
Goto Forum:
  


Current Time: Sun Feb 16 03:46:53 GMT 2025

Powered by FUDForum. Page generated in 0.02889 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top