Session.saveOrUpdateҎ的执行步骤:
1.首先在Session内部~存中进行查找,如果发现则直接返回?BR> 2.执行实体cd应的Interceptor.isUnsavedҎQ如果有的话Q,判断对象是否为未保存状态?BR> 3.Ҏunsaved-value判断对象是否处于未保存状态?BR> 4.如果对象未保存(Transient状态)Q则调用saveҎ保存对象?BR> 5.如果对象为已保存QDetached状态)Q调用updateҎ对象与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 |