src/com/dao/TGonggaoDAO.java

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.dao;

import java.util.Date;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.model.TGonggao;

/**
 * Data access object (DAO) for domain model class TGonggao.
 * 
 * @see com.model.TGonggao
 * @author MyEclipse Persistence Tools
 */

public class TGonggaoDAO extends HibernateDaoSupport
{
	private static final Log log = LogFactory.getLog(TGonggaoDAO.class);

	// property constants
	public static final String GONGGAO_TITLE = "gonggaoTitle";

	public static final String GONGGAO_CONTENT = "gonggaoContent";

	public static final String GONGGAO_FABUZHE = "gonggaoFabuzhe";

	public static final String GONGGAO_ONE1 = "gonggaoOne1";

	public static final String GONGGAO_ONE2 = "gonggaoOne2";

	public static final String GONGGAO_ONE3 = "gonggaoOne3";

	public static final String GONGGAO_ONE4 = "gonggaoOne4";

	public static final String GONGGAO_ONE7 = "gonggaoOne7";

	public static final String GONGGAO_ONE8 = "gonggaoOne8";

	protected void initDao()
	{
		// do nothing
	}

	public void save(TGonggao transientInstance)
	{
		log.debug("saving TGonggao instance");
		try
		{
			getHibernateTemplate().save(transientInstance);
			log.debug("save successful");
		} catch (RuntimeException re)
		{
			log.error("save failed", re);
			throw re;
		}
	}
后面还有 170 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。