Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] EclipseLink will create any non-merged entities even if no cascade-operation is specified

It's this bug again: https://bugs.eclipse.org/bugs/show_bug.cgi?id=247662
 
Given this class
 
class Companny {
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "responsible_id")
Person responsiblePerson = null;
}
 
The problem is that EL will in this case create the responsiblePerson when persisting Company. This is, according to many, regarded as a bug and an IllegalStateException should be thrown.
 
Any plans to look into this?
 
--
Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963

Back to the top