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
Member
This my entity

@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:LocalDateTime is not mapped correctly
Next Topic:Package org.eclipse.persistence.internal.libraries.asm not found building EclipseLink 2.7.0
Goto Forum:
  


Current Time: Wed Aug 21 11:46:20 GMT 2019

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

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

Back to the top