- 浏览: 112145 次
- 性别:
- 来自: 上海
最新评论
-
wzfj2002:
拜读,解决了偶的大问题,谢谢
让人烦恼的org.xml.sax.SAXNotRecognizedException错误 -
zhengbin917943:
写的是什么?
javascript 页面元素导航 -
wendaoke:
我也遇到这样的情况,但是后来直接写sql,就没有出现这样的问题 ...
IllegalArgumentException occurred calling getter of * -
qxk0210:
aaaaa
hibernate 源码学习 多出来的update语句 之一 -
tangcb:
[i][u]引用[list][list=][img][/img ...
一些常用的Eclipse 3.0的插件
文章列表
//找parent.parent.parent
window.parent.parent.parent.document.getElementById("hiddenBtn").value="隐藏列表";
window.parent.parent.document.getElementById("trackListTable").style.display="block";
window.parent.parent.parent.document.getElementById(& ...
- 2007-06-21 11:09
- 浏览 2106
- 评论(1)
xml 代码
<class name="A" entity-name="A" table="aaa">
<id name="id">
<generator class="native"/>
id> 部分,它加了一个CollectionRecreateAction。这就为update 语句埋下了伏笔。
<array name= ...
- 2007-01-26 13:31
- 浏览 4080
- 评论(1)
defalut entityname
- 博客分类:
- hibernate
String entityName = node.attributeValue( "entity-name" );
if ( entityName == null ) entityName = getClassName( node.attribute("name"), mappings );
if ( entityName==null ) {
throw new MappingException( "Unable to determine entity name" );
}
persistentC ...
- 2006-11-11 18:07
- 浏览 2220
- 评论(1)
说:
在Hibernate-content.xml中
说:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<property name="configLocations"
value="classpat ...
* A tuplizer defines the contract for things which know how to manage
* a particular representation of a piece of data, given that
* representation's {@link org.hibernate.EntityMode} (the entity-mode
* essentially defining which representation).
* </p>
* If that given piece of data ...
- 2006-11-01 22:06
- 浏览 1914
- 评论(0)
String driver = "org.hsqldb.jdbcDriver";
String connectString = "jdbc:hsqldb:hsql://localhost";
String user = "sa";
String password = "";
- 2006-10-13 11:29
- 浏览 1423
- 评论(0)
public class ActionException extends RuntimeException
{
private ActionMessage actionMessage;
public ActionException(String key)
{
actionMessage = new ActionMessage(key);
}
public String getMessage()
{
if(actionMessage != null)
re ...
- 2006-10-10 14:00
- 浏览 1463
- 评论(0)
<script language="JavaScript" type="text/JavaScript">
function setDefaultExportType()
{
if (reportDetail.exportType.length)
{
reportDetail.exportType[0].checked=true
}
else
{
reportDetail.exportType.checked=true
}
}
setDefa ...
- 2006-10-10 10:01
- 浏览 1120
- 评论(0)
在做的项目是从webwork转成struts的,同时有些思路和我以前做的不太一样。所以 String submitOkStr = request.getParameter("submitOk");;
boolean submitOk = false;
if (submitOkStr != null);
submitOk = true;
//在这里加这样一句,是用来在分页操作时,这时候用户只是点击了下一页的按钮,
//并没有点击submitOK按钮,这样就搜索不出数据。
String pageNoStr = request. ...
- 2006-09-08 10:28
- 浏览 1137
- 评论(0)
One way to solve the classloader issue is by reverting the JBoss configuration to the old classloading model.
Edit the file <jboss>/server/default/jbossweb-tomcat55.sar/META-INF/jboss-service.xml
Change the following lines:
<attribute name="Java2ClassLoadingCompliance"& ...
- 2006-08-18 17:09
- 浏览 2830
- 评论(0)
if(hasPostValue == 'true')
{
ok = confirm("部门里面已经下辖职位,如果删除,将把下辖职位一并删除,确实要删除吗?");
}
- 2006-08-17 15:49
- 浏览 1041
- 评论(0)
<set name="posts"
cascade="delete"
inverse="true">
<key column="dept_id"/>
<one-to-many class="Post"/>
</set>
注意其中的key column="dept_id",dept_id是子表的鍵字段的列名,而不是主表主键字段的列名.
- 2006-08-14 10:12
- 浏览 1295
- 评论(0)
<%@ page contentType="text/html;charset=gb2312"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/webui" prefix="webui"%>
<% ...
- 2006-08-14 10:10
- 浏览 1164
- 评论(0)
今天在执行ant任务,编译japerreport文件的时候,遇到一个org.xml.sax.SAXNotRecognizedException: Feature: http://apache.org/xml/features/validation/dynamic错误,不知道什么原因,多方查找,在网上找到一段资料。如下:
java.lang.NoClassDefFoundError: org/xml/sax/SAXNotRecognizedException
你需要保证xerces.jar文件在CLASSPATH中位于其他XML类,如JAXP或Crimson之前,这些类文件,包括以前老版本的x ...
- 2006-07-31 16:57
- 浏览 13183
- 评论(1)
<select name="dataSourceId">
<ww:set name="dataSourceIdC" value="dataSourceId" />
<option value="-1" SELECTED>(none);</option>
<ww:iterator value="dataSources">
<option value=<ww:property value=&q ...
- 2006-07-28 16:40
- 浏览 1756
- 评论(0)