摘要: 所需要的jar包: com.danga.MemCached.MemCachedClient com.danga.MemCached.SockIOPool 自行下载/** * 缓存服务器集群,提供缓存连接初始化,获取缓存客户端等工作 * @author ray */public class CacheCluster{ private final static MemCachedClient client = new MemCachedClient(); private static String _memcache_config = "/WE... 阅读全文
posted @ 2013-09-24 19:03 MuaRine 阅读(2231) 评论(0) 推荐(0) 编辑
摘要: 联合查询:表1: team球队表 表2:schedule 赛程表需要数据:球队名称、主队ID、主队名称、客队ID、客队名称、胜负情况方法1. Object数组取出列和数值import java.util.List;import junit.framework.TestCase;import org.hibernate.SQLQuery;import org.hibernate.Session;import org.junit.Test;import com.nubb.db.HibernateUtil;import com.nubb.db.career.CareerDaoFactory;i... 阅读全文
posted @ 2013-09-24 18:58 MuaRine 阅读(2968) 评论(0) 推荐(0) 编辑