`
lvjinhua
  • 浏览: 9779 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
记录几个今天配置Hibernate3.5注解时的问题。 1)关于Hibernate 原XML中的 compose-id (复合主键)用注解配置 有几种方法:   第一种:直接在对应的复合主键上添加@Id @Entity public class Employee { @Id String empName; @Id Date birthDay;   第二种:使用@IdClass注解 public class EmployeePK implements Serializable {    private String empName;    private Date birthDay;    。 ...
还真是郁闷,mysql 的 timestamp字段的默认值,如果想为NULL,必须设置为 0000-00-00 00:00:00,否者都会自动变为 CURRENT_TIMESTAMP
今天看到一个方法,在基类中直接获取到其泛型参数的Class,如下例: MyDao extends BaseDao<Book> {...} 通过如下方法,可以在BaseDao中通过反射的方法,得到Book.class: Class<T> entityClass = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; 原文见:http://xuliangyong.iteye.com/blog/51083
昨天装系统,RHEL5.6,硬盘是硬件RAID1的,名字叫ubox-op 问题来了,系统安装过程中,拷贝文件正常,但是在安装grub的时候出现异常! 几经波折,最后把raid1的名字从ubox-op改为ubox后,ok了!
我遇到这个问题,刚开始以为是RXTX的问题,后来使用它的侦听者模式,当收到数据时再读串口,就不再有问题了。
<script language="JavaScript"> var flag=false; function DrawImage(ImgD,imageWidth,imageHeight) {    var image=new Image();    image.src=ImgD.src;    if(image.width>0 && image.height>0){     flag=true;     if(image.width/image.height>= imageWidth/imageHeight){ ...
一、配置web.xml <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> <init-param> <param-name>actionPackages</param-name> <param-value>com.test.action</ ...
Global site tag (gtag.js) - Google Analytics