`
Java-primer
  • 浏览: 50410 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论
文章列表
代码: Os类 public class Os {     private Long id;     .     .     ...     private Set<OsFeature> osFeatures = new HashSet<OsFeature>();     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     @Column(name="OsId", unique = true, nullable = false, insertable = true,      up ...
javascript和swf在网页中交互一般可有以下几种情况: 1.swf和这些调用的javascript在同域 2.swf和这些调用的javascript在不同域,比如加载远程的swf然后call别地方的服务 对于swf跨域call服务的问题,可同过crossdomain.xml配置解决。 但对于加载远程的swf,默认情况下,根本不能将里面的方法成功注册为向javascript公开的方法,一般会报此类错误: a) SecurityError: Error #2060: 安全沙箱冲突:ExternalInterface ,调用者 remote.com/test.swf(所加载的远程sw ...
Os与OsFeature为一对多关系(OneToMany) Os: private Long osId; . . . private Set<OsFeature> osFeatures = new HashSet<OsFeature>(); @Id @GeneratedValue(strategy = GenerationType.AUTO) @Column(name="OsId", unique = true, nullable = false, insertable = true, updatable = true) public Long ge ...
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. 个人解决方法: 1.spring的配置文件一定要写,找到applicationContext-core.xml并打开, ...
在org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor配置这块: <bean id="openSessionInviewInterceptor" class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor"> <property name="sessionFactory" ref="cojava:hibernateSes ...
 看到jBPM中大量使用了subclass的用法,应该说这个是比较OO的,设计的非常合理。   (一)、首先先去看看Hibernate的subclass:   1.对于“每一个类继承树对应一个表”的策略来说,就需要使用<subclass>定义。   <subclass> ...
failed to lazily initialize a collection of role: XXXXXXXX no session or session was closed2007-05-11 10:47这个异常大致意思是说在多对一的时候(并且lazy="false"),对象的实例失败,多数出现的情况有 1、粗心造成 实例对象类名写错之类的 2 ...
1、到底在哪用cascade="..."? cascade属性并不是多对多关系一定要用的,有了它只是让我们在插入或删除对像时更方便一些,只要在cascade的源头上插入或是删除,所有cascade的关系就会被自己动的插入或是删除。便是为了能 ...
如何不让地址栏显示后缀: 1,在web.xml中,定义welcome-file为一个jsp页面: <welcome-file-list>         <welcome-file>/index.jsp</welcome-file> </welcome-file-list> 然后在该jsp页面中引入需要显示的action,如: <c:import url="/spinlet/prepare-homepage.do"/> 效果: 在没进行这样设置之前: 1、当在地址栏中输入域名地址:http://www.xxxxx.c ...
页面编码问题---mailto中夹杂中文以及UrlEncode的问题     网页中有个发email的链接,需要调用客户的outlook发送email,链接是这样的: mailto:zhangweiwei@staff.hexun.com?subject=主题&body=正文 这样就能达到自动把主题和部分正文填到outlook里,但是运行时发现outlook接收的是乱码。我的网页是utf-8编码的,在web.config里面是这样的:    <globalization             requestEncoding="utf-8"          ...
var CheckBoxObj={ process: function(element){ for(var i=0; i<element.length; i++){    if(element[i].checked){   return false;    } } return true;   }, clickParent: function(parentNode, childNode){ var parentElement = document.getElementById(parentNode); var ...
<table> <tr> <td>共${pageCountHelp.pageCount}页</td> <td></td> <c:if test="${(pageCountHelp.pageNo)>1}"> <td><a href="listemployee.do?pageNo=1">first</a> <a href="listemployee.do?pageNo=${(pageCount ...
<filter>   <filter-name>SetCharacterEncoding</filter-name>   <filter-class>   org.springframework.web.filter.CharacterEncodingFilter</filter-class>   <init-param>   <param-name>encoding</param-name>   <param-value>GBK</param-value>   </in ...
Global site tag (gtag.js) - Google Analytics