Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] bi-directional mapping causes two inserts



On Wed, May 28, 2008 at 8:42 PM, christopher delahunt <christopher.delahunt@xxxxxxxxxx> wrote:
Hello Magnus,

I've filed an EclipseLink bug for the issue:
 https://bugs.eclipse.org/bugs/show_bug.cgi?id=234461

As you've shown, the solution is to not put relationship maintenance code into accessor methods.
Best Regards
Chris

Thanks. We have switched to annotation on attributes now, and everything is back to normal. We had it like that until I added mapping to spatial columns, and wanted to do some initialization before the geometry was inserted, but I added a @PreInsert/Update instead now and everything works.

--

/Magnus Heino

Back to the top