📄 ejb3flusheventlistener.java
字号:
//$Id: EJB3FlushEventListener.java,v 1.2 2005/02/21 14:39:02 oneovthafew Exp $package org.hibernate.event.ejb3;import org.hibernate.engine.Cascades;import org.hibernate.event.def.DefaultFlushEventListener;import org.hibernate.util.IdentityMap;/** * In EJB3, it is the create operation that is cascaded to unmanaged * ebtities at flush time (instead of the save-update operation in * Hibernate). * * @author Gavin King */public class EJB3FlushEventListener extends DefaultFlushEventListener { protected Cascades.CascadingAction getCascadingAction() { return Cascades.ACTION_PERSIST; } protected Object getAnything() { return IdentityMap.instantiate(10); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -