Stop Hibernate from updating collections when they have not changed

前端 未结 2 1180
别跟我提以往
别跟我提以往 2021-02-07 23:11

I have two entity beans defined as follows (unrelated stuff removed):

@Entity
@Table(...)
public class MasterItem implements java.io.Serializable {

  private Se         


        
2条回答
  •  再見小時候
    2021-02-07 23:52

    try to add a revision column (optimistic locking) to your entities

    @Version
    Date lastModified;
    

提交回复
热议问题