记住,我们是通过检查会话中的用户信息来识别有效用户的。
Remember, we recognize validated users by checking the session for their user information.
例如,可以检查一个会话变量中是否设置了一个用户ID(表明该用户已经登录)。
For example, you could check to see if a user ID has been set in a session variable (showing that the user has actually logged in).
将分离对象合并回会话时,JPA将检查该对象,并使用任何更改值来更新数据存储区。
When merging a detached object back into a session, JPA will examine the object and update the data store with any changed values.
应用推荐