rootdao.tvm

来自「一个购房管理系统,JSF+Hibernate+Mssql2」· TVM 代码 · 共 31 行

TVM
31
字号
:Description=
:ResourceType=C
-
package ${package};

${snippet.RootDAOImports}

${snippet.RootDAOClassComments}
${snippet.RootDAOClassDefinition}

${snippet.RootDAOClassConstructors}

/*
	If you are using lazy loading, uncomment this
	Somewhere, you should call RootDAO.closeCurrentThreadSessions();
	public void closeSession (Session session) {
		// do nothing here because the session will be closed later
	}
*/

/*
	If you are pulling the SessionFactory from a JNDI tree, uncomment this
	protected SessionFactory getSessionFactory(String configFile) {
		// If you have a single session factory, ignore the configFile parameter
		// Otherwise, you can set a meta attribute under the class node called "config-file" which
		// will be passed in here so you can tell what session factory an individual mapping file
		// belongs to
		return (SessionFactory) new InitialContext().lookup("java:/{SessionFactoryName}");
	}
*/
}

⌨️ 快捷键说明

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