共 8 篇文章 |
|
public List findByCriteria(final DetachedCriteria detachedCriteria) { return (List) getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { Criteria criteria = detachedCriteria.getExecutableCriteria(session);Cat cat = new Cat();Detac... 阅1505 转3 评0 公众公开 08-04-17 11:59 |
MS SQL,Oracle, MySQL查出值为NULL的替换 - 软件屋MS SQL Oracle MySQL查出值为NULL的替换 在SQL Server Oracle MySQL当数据库中查出某值为NULL怎么办?如果 eExpression1 的计算结果为 null 值,则 NVL() 返回 eExpression2。如果 eExpression1 与 eExpression2 的结果皆为 null 值,则 NVL( ) 返回 NULL.在不支持 null 值或 null 值无关... 阅1062 转0 评0 公众公开 08-04-16 13:35 |
阅305 转1 评0 公众公开 08-04-12 10:00 |
安装后,提示错误信息:
DB29501E DB2检测到不一致环境:"DB2INSTANCE:-2029059916"
导致DB2无法启动
解决方法:
进入命令行处理器,执行 db2icrt db2 阅1344 转1 评0 公众公开 08-02-03 11:49 |
##符号中 间的名字来自此类的属性.--> <insert id="insert_student" parameterClass="cn.itcast.Student"> insert into student(firstname,lastname) values (#firstname#,#lastname#) </insert><update id="updateStudent" parameterClass="cn.itcast.Student"> ... 阅3274 转27 评0 公众公开 08-01-24 22:50 |
<property name="dbcp.maxActive">100</property> <property name="dbcp.whenExhaustedAction">1</property> <property name="dbcp.maxWait">60000</property> <property name="dbcp.maxIdle">10</property><property name="dbcp.ps.maxActi... 阅598 转4 评1 公众公开 08-01-24 12:57 |
Hibernate连接池配置 Hibernate支持第三方的连接池,官方推荐的连接池是C3P0,Proxool,以及DBCP。例如,配置C3P0时的provider_class有Hibernate2环境下使用net.sf.hibernate.connection.C3P0ConnectionProvider,在Hibernate3环境下使用org.hibernate.connection.C3P0ConnectionProvider。<p<property name="hibernate.connection... 阅5295 转41 评0 公众公开 08-01-24 12:54 |
public static List<String> getImportedKeys(Connection connection, String tableName) throws Exception { ArrayList<String> keyList = new ArrayList<String>();public static List<String> getExportedKeys(Connection connection, String tableName) throws Exception { ArrayList<String> keyList... 阅857 转4 评0 公众公开 08-01-02 17:57 |