再次犯了没有仔细看HibernateReference的错误,在Hibernate3以上版本都支持对于property设置lazy="true",但一直我都以为只要设置了就可以实现的,今天和jindw讨论的时候才知道原来不是这样,^_^,赶快做了下试验,确实,即使对于property设置了lazy="true",但在调用获取了po中的任意非主键属性时其他所有的property也就被加载了,也就是说lazy没有生效,到底怎么回事呢,翻阅HibernateRe
系统 2019-08-29 22:55:12 1888
字符串的常用方法总结:packagecn.com.huawei.opensource.common.lang;importjava.io.*;publicclassStringConverter{publicStringConverter(){}byte[]stringToFullByteArray(Strings){inti=s.length();byteabyte0[]=newbyte[i*2];for(intj=0;j
系统 2019-08-12 09:30:33 1888
FlumeSinks1、Flume’sCollectorTierEventSinkscollectorSink("fsdir","fsfileprefix",rollmillis)collectorSink,数据通过collector汇聚之后发送到hdfs,fsdir是hdfs目录,fsfileprefix为文件前缀码2、Flume’sAgentTierEventSinksagentSink[("machine"[,port])]Defaultstoage
系统 2019-08-12 09:27:19 1888
镜像制作一般裁剪步骤1,linux系统安装CentOs/RHELDesktop桌面系统,分区划分但分区/挂载点.设置Selinux=disabled关闭iptables安装cloud-init【RHEL系统安装cloud-init需要配置下基于iso的本机yum源及epel源】设置grubbootlog,一般/etc/grub.cnfor/etc/grub/grub.cnfconsole=ttyS02,windows系统使用激活工具激活系统关闭系统自带的防
系统 2019-08-12 09:26:49 1888
usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingDevExpress.XtraGrid.Localization;usingDevExpress.XtraBars.Localization;usingDevExpress.XtraCharts.Localization;usingDevExpress.XtraEditors.Controls;usingDevExpress.
系统 2019-08-12 09:26:39 1888
BufferedInputStream自带8M缓冲区,我们自己又定义byte[]buf=newbyte[1024*1024];那bis.read(buf)就会去,8M缓冲区取数据,读到自己的1M缓冲区,直到碰到bos.write(buf,0,len)把1M缓冲区的数据放到另外一个输出流的8M缓冲区里,输出流满8M就往外写东西,BufferedInputStream的理解.
系统 2019-08-12 01:33:11 1888
在linux2.6内核中,使用cdev结构体描述字符设备,cdev的定义在中可找到,其定义如下:引用structcdev{structkobjectkobj;structmodule*owner;conststructfile_operations*ops;structlist_headlist;dev_tdev;unsignedintcount;};cdev结构体中的dev_t成员定义了设备号,为32位,其中高12位为主设备号
系统 2019-08-12 01:33:10 1888
Findwhichvisualstudioandservicepackversioninstalled.lookingintheregistryhereHKEY_LOCAL_MACHINE\Software\Microsoft\DevDiv[ProductFamily]\Servicing\9.0\thenfindingapropertynamedsomethinglike"SP"or"SPIndex".Avalueof1meansinstalled,an
系统 2019-08-12 01:32:31 1888
简介:EhCache是一个纯Java的进程内缓存框架,具有快速、精干等特点,是Hibernate中默认的CacheProvider。本文充分的介绍了EhCache缓存系统对集群环境的支持以及使用方法。EhCache缓存系统简介EhCache是一个纯Java的进程内缓存框架,具有快速、精干等特点,是Hibernate中默认的CacheProvider。下图是EhCache在应用程序中的位置:图1.EhCache应用架构图EhCache的主要特性有:快速;简单
系统 2019-08-12 01:31:54 1888