Session.saveOrUpdateҎ(gu)的执行步骤:(x)
1.首先在Session内部~存中进行查找,如果发现则直接返回?BR> 2.执行实体cd应的Interceptor.isUnsavedҎ(gu)Q如果有的话Q,判断对象是否为未保存状态?BR> 3.Ҏ(gu)unsaved-value判断对象是否处于未保存状态?BR> 4.如果对象未保存(Transient状态)(j)Q则调用saveҎ(gu)保存对象?BR> 5.如果对象为已保存QDetached状态)(j)Q调用updateҎ(gu)对象与Session重新兌?/P>
public Example excludeZeroes()
public Example excludeNone()
public Example enableLike(MatchMode matchMode)
public Example enableLike()
public Example ignoreCase()
public Example excludeProperty(String name)
Field Summary | |
static MatchMode |
ANYWHERE Match the pattern anywhere in the string |
static MatchMode |
END Match the end of the string to the pattern |
static MatchMode |
EXACT Match the entire string to the pattern |
static MatchMode |
START Match the start of the string to the pattern |