zoukankan      html  css  js  c++  java
  • entityManager

    ScenarioEntityManager.persistEntityManager.mergeSessionManager.saveOrUpdate
    Object passed was never persisted 1. Object added to persistence context as new entity
    2. New entity inserted into database at flush/commit
    1. State copied to new entity.
    2. New entity added to persistence context
    3. New entity inserted into database at flush/commit
    4. New entity returned
    1. Object added to persistence context as new entity
    2. New entity inserted into database at flush/commit
    Object was previously persisted, but not loaded in this persistence context 1. EntityExistsException thrown (or a PersistenceException at flush/commit) 2. Existing entity loaded.
    2. State copied from object to loaded entity
    3. Loaded entity updated in database at flush/commit
    4. Loaded entity returned
    1. Object added to persistence context
    2. Loaded entity updated in database at flush/commit
    Object was previously persisted and already loaded in this persistence context 1. EntityExistsException thrown (or a PersistenceException at flush or commit time) 1. State from object copied to loaded entity
    2. Loaded entity updated in database at flush/commit
    3. Loaded entity returned
    1. NonUniqueObjectExceptionthrown
  • 相关阅读:
    BSGS
    [AT1252] IOIOI カード占い
    [十二省联考2019]春节十二响
    [CF912E] Prime Gift
    CDQ分治
    [CF747F] Igor and Interesting Numbers
    [十二省联考2019]异或粽子
    51Nod 2128 前缀异或
    51Nod 3212 数字变位
    HDU 1106 排序
  • 原文地址:https://www.cnblogs.com/javaleon/p/4015357.html
Copyright © 2011-2022 走看看