⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vetoer.java

📁 介绍了hibernate的入门有一些基本常用的事例
💻 JAVA
字号:
//$Id: Vetoer.java,v 1.1 2004/09/26 05:18:26 oneovthafew Exp $package org.hibernate.test.legacy;import java.io.Serializable;import org.hibernate.CallbackException;import org.hibernate.Session;import org.hibernate.classic.Lifecycle;public class Vetoer implements Lifecycle {	boolean onSaveCalled;	boolean onUpdateCalled;	boolean onDeleteCalled;	private String name;	private String[] strings;	public boolean onSave(Session s) throws CallbackException {		boolean result = !onSaveCalled;		onSaveCalled = true;		return result;	}	public boolean onUpdate(Session s) throws CallbackException {		boolean result = !onUpdateCalled;		onUpdateCalled = true;		return result;	}	public boolean onDelete(Session s) throws CallbackException {		boolean result = !onDeleteCalled;		onDeleteCalled = true;		return result;	}	public void onLoad(Session s, Serializable id) {}	public String getName() {		return name;	}	public void setName(String name) {		this.name = name;	}	public String[] getStrings() {		return strings;	}	public void setStrings(String[] strings) {		this.strings = strings;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -