Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Synchronization error when insertable = false in EclipseLink
Synchronization error when insertable = false in EclipseLink [message #1807916] Wed, 12 June 2019 09:16
Pavel No is currently offline Pavel NoFriend
Messages: 47
Registered: May 2016
This my entity

public class Order {

    @OneToMany (fetch = FetchType.LAZY)
    @JoinColumn(name="order_uuid", insertable = false, updatable = false)
    private List<Item> items;

When I create new Oder and save it in DB I get:

    Caused by: java.lang.IllegalStateException: During synchronization a new object was found through a relationship that was not marked cascade PERSIST: com.temp.Item@3cd8c5f.

Could anyone explain the reason of this error (I did add insertable = false) and how to fix it (I don't want to create new items when I create order)?
Previous Topic:ValidationException
Next Topic:createQuery method hangs for a query with multiple clauses
Goto Forum:

Current Time: Sun Jul 21 11:03:47 GMT 2024

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

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

Back to the top