锁定老帖子 主题:看到这么雷人的代码,真是悲催
该帖已经被评为精华帖
|
|
---|---|
作者 | 正文 |
发表时间:2011-05-13
妮犸省得混淆了~
悲剧了 写道 nianien 写道 public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm, String qcrXm, String fhrDm, String fhrXm, String qfrDm, String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf, String nsrxmXf, String swjgDmJsf, String swjgDmFqf, String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc, String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc, Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs, BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk, BigDecimal tseY, BigDecimal tseZbbl, String fhsm, Date fuhjzrq, Date rqTk, Date sjFuhfs, String dyfhBh, String yqfhBz, String fhBz, String cbBz, Date sjCbhfs) { this.hjBh = hjBh; this.fqfZt = fqfZt; this.jsfZt = jsfZt; this.qcrDm = qcrDm; this.qcrXm = qcrXm; this.fhrDm = fhrDm; this.fhrXm = fhrXm; this.qfrDm = qfrDm; this.qfrXm = qfrXm; this.nsrsbhGf = nsrsbhGf; this.nsrxmGf = nsrxmGf; this.nsrsbhXf = nsrsbhXf; this.nsrxmXf = nsrxmXf; this.swjgDmJsf = swjgDmJsf; this.swjgDmFqf = swjgDmFqf; this.swjgJcFqf = swjgJcFqf; this.swjgJcJsf = swjgJcJsf; this.bfpryDm = bfpryDm; this.bspryMc = bspryMc; this.lxrXm = lxrXm; this.lxrDh = lxrDh; this.lxrDz = lxrDz; this.lxrYb = lxrYb; this.sjSc = sjSc; this.sjFs = sjFs; this.sjTjfh = sjTjfh; this.sjTjqf = sjTjqf; this.hjLx = hjLx; this.fpfs = fpfs; this.jeHj = jeHj; this.seHj = seHj; this.jshjHj = jshjHj; this.qtqk = qtqk; this.tseY = tseY; this.tseZbbl = tseZbbl; this.fhsm = fhsm; this.fuhjzrq = fuhjzrq; this.sjFuhfs = sjFuhfs; this.dyfhBh = dyfhBh; this.yqfhBz = yqfhBz; this.fhBz = fhBz; this.cbBz = cbBz; this.sjCbhfs = sjCbhfs; } 调用这个类的人才是真正的悲催 |
|
返回顶楼 | |
发表时间:2011-05-13
这个方法有人调??
|
|
返回顶楼 | |
发表时间:2011-05-13
jialeadmin 写道 whao189 写道 悲剧了 写道 nianien 写道 public CktsQfxxHsh(String hjBh, String fqfZt, String jsfZt, String qcrDm, String qcrXm, String fhrDm, String fhrXm, String qfrDm, String qfrXm, String nsrsbhGf, String nsrxmGf, String nsrsbhXf, String nsrxmXf, String swjgDmJsf, String swjgDmFqf, String swjgJcFqf, String swjgJcJsf, String bfpryDm, String bspryMc, String lxrXm, String lxrDh, String lxrDz, String lxrYb, Date sjSc, Date sjFs, Date sjTjfh, Date sjTjqf, String hjLx, BigDecimal fpfs, BigDecimal jeHj, BigDecimal seHj, BigDecimal jshjHj, String qtqk, BigDecimal tseY, BigDecimal tseZbbl, String fhsm, Date fuhjzrq, Date rqTk, Date sjFuhfs, String dyfhBh, String yqfhBz, String fhBz, String cbBz, Date sjCbhfs) { this.hjBh = hjBh; this.fqfZt = fqfZt; this.jsfZt = jsfZt; this.qcrDm = qcrDm; this.qcrXm = qcrXm; this.fhrDm = fhrDm; this.fhrXm = fhrXm; this.qfrDm = qfrDm; this.qfrXm = qfrXm; this.nsrsbhGf = nsrsbhGf; this.nsrxmGf = nsrxmGf; this.nsrsbhXf = nsrsbhXf; this.nsrxmXf = nsrxmXf; this.swjgDmJsf = swjgDmJsf; this.swjgDmFqf = swjgDmFqf; this.swjgJcFqf = swjgJcFqf; this.swjgJcJsf = swjgJcJsf; this.bfpryDm = bfpryDm; this.bspryMc = bspryMc; this.lxrXm = lxrXm; this.lxrDh = lxrDh; this.lxrDz = lxrDz; this.lxrYb = lxrYb; this.sjSc = sjSc; this.sjFs = sjFs; this.sjTjfh = sjTjfh; this.sjTjqf = sjTjqf; this.hjLx = hjLx; this.fpfs = fpfs; this.jeHj = jeHj; this.seHj = seHj; this.jshjHj = jshjHj; this.qtqk = qtqk; this.tseY = tseY; this.tseZbbl = tseZbbl; this.fhsm = fhsm; this.fuhjzrq = fuhjzrq; this.sjFuhfs = sjFuhfs; this.dyfhBh = dyfhBh; this.yqfhBz = yqfhBz; this.fhBz = fhBz; this.cbBz = cbBz; this.sjCbhfs = sjCbhfs; } 调用这个类的人才是真正的悲催 这还不算是最悲剧的吧。。。应该是理解这些字段的人才是悲剧!!! 呃 果然悲惨 估计写代码的人是工具生成的。。。。。 |
|
返回顶楼 | |
发表时间:2011-05-13
joliny 写道 用hibernatge进行多表关联查询的时候,自己创建vo都是这么写。那太悲哀了。从那之后就不用hibernate了。
VO一般都反向生成, 生成的构造函数肯能确实是这样,但是调用可以不是这样, 调用一般用BeanUtil 动态设置 其实也还好了, hibernate用起来还是比写SQL爽的 |
|
返回顶楼 | |
发表时间:2011-05-13
不用大惊小怪的..明显自动生成的.不过属性名字可能都是简写,定义属性时也许有注释!
/** default constructor */ /** minimal constructor */ /** full constructor */ 自动的..不用叫真..不用可以删除. |
|
返回顶楼 | |
发表时间:2011-05-13
JE帐号 写道 public CktsQfxxHsh________Ckts:出口退税____________fxx:签发信息 Hsh:核算函?
(String hjBh,_____________hj:汇价__________________Bh:编号 String fqfZt,_____________jsf:发起方?_______________Zt:状态?主体? String jsfZt,_____________jsf:结算方________________Zt:状态?主体? String qcrDm,_____________qcr:清查人________________Dm:代码 String qcrXm,_____________qcr:清查人________________Xm:姓名 String fhrDm,_____________fhr:发货人________________Dm:代码 String fhrXm,_____________fhr:发货人________________Xm:姓名 String qfrDm,_____________qfr:签发人________________Dm:代码 String qfrXm,_____________qfr:签发人________________Xm:姓名 String nsrsbhGf,__________nsrsbh:纳税人申报号_______Gf:规范? String nsrxmGf,__________ nsrxm:纳税人项目__________Gf:规范? String nsrsbhXf,__________nsrsbh:纳税人申报号_______Xf:细分? String nsrxmXf,___________nsrxm:纳税人项目__________Xf:细分? String swjgDmJsf,_________swjg:税务机关_____________Dm:代码_______________Jsf:结算方? String swjgDmFqf,_________swjg:税务机关_____________Dm:代码_______________Jsf:结算方? String swjgJcFqf,_________swjg:税务机关_____________Jc:检查,警察?_________Fqd:发起方? String swjgJcJsf,_________swjg:税务机关_____________Jc:检查,警察?_________Fqd:发起方? String bfpryDm,___________bfpry:被分配人员__________Dm:代码 String bspryMc,___________bspry:???人员_____________Mc:名称 String lxrXm,_____________lxr:联系人________________Xm:姓名 String lxrDh,_____________lxr:联系人________________Dh:电话 String lxrDz,_____________lxr:联系人________________Dz:地址 String lxrYb,_____________lxr:联系人________________Yb:邮编 Date sjSc,________________sj:时间___________________Sc:审查? Date sjFs,________________sj:时间___________________Fs:复审? Date sjTjfh,______________sj:时间___________________Tjfh:统计复核 Date sjTjqf,______________sj:时间___________________Tjfh:统计签发 String hjLx,______________hj:合计??汇价?____________Lx:类型??利息?? BigDecimal fpfs,__________fpfs:发票 fs 复审? BigDecimal jeHj,__________jehj:金额合计 BigDecimal seHj,__________seHj:数额合计? BigDecimal jshjHj,________jshjHj:结算合计? String qtqk,______________qtqk:其他情况 BigDecimal tseY,__________tse:退税额________________Y:已办理? BigDecimal tseZbbl,_______tse:退税额________________Zbbl:暂不办理? String fhsm,______________fhsm:返还数目? Date fuhjzrq,_____________fuhjzrq:?? rq日期 Date rqTk,________________rq:日期___________________Tk:退款 Date sjFuhfs,_____________sj:时间___________________Fuhfs:?? String dyfhBh,____________dyfh:抵押返还_____________Bh:编号 String yqfhBz,____________dyfh:抵押返还_____________Bz:标准 String fhBz,______________fh:返还___________________Bz:标准 String cbBz,______________cb:操办?__________________Bz:标准 Date sjCbhfs______________sj:时间___________________Cbhfs:发送 好吧,我很无聊.... ps:感谢google输入法友情支持... 你蛋疼的让我佩服... |
|
返回顶楼 | |
发表时间:2011-05-13
事物都有两面性,大家向积极的方面看,这样的代码-安全度高啊,可能是出于保密考虑,很给力撒!!!有木有!!!过几天自己都不知道写了些什么了,所以安全!!!
|
|
返回顶楼 | |
发表时间:2011-05-13
Crusader 写道 JE帐号 写道 public CktsQfxxHsh________Ckts:出口退税____________fxx:签发信息 Hsh:核算函?
(String hjBh,_____________hj:汇价__________________Bh:编号 String fqfZt,_____________jsf:发起方?_______________Zt:状态?主体? String jsfZt,_____________jsf:结算方________________Zt:状态?主体? String qcrDm,_____________qcr:清查人________________Dm:代码 String qcrXm,_____________qcr:清查人________________Xm:姓名 String fhrDm,_____________fhr:发货人________________Dm:代码 String fhrXm,_____________fhr:发货人________________Xm:姓名 String qfrDm,_____________qfr:签发人________________Dm:代码 String qfrXm,_____________qfr:签发人________________Xm:姓名 String nsrsbhGf,__________nsrsbh:纳税人申报号_______Gf:规范? String nsrxmGf,__________ nsrxm:纳税人项目__________Gf:规范? String nsrsbhXf,__________nsrsbh:纳税人申报号_______Xf:细分? String nsrxmXf,___________nsrxm:纳税人项目__________Xf:细分? String swjgDmJsf,_________swjg:税务机关_____________Dm:代码_______________Jsf:结算方? String swjgDmFqf,_________swjg:税务机关_____________Dm:代码_______________Jsf:结算方? String swjgJcFqf,_________swjg:税务机关_____________Jc:检查,警察?_________Fqd:发起方? String swjgJcJsf,_________swjg:税务机关_____________Jc:检查,警察?_________Fqd:发起方? String bfpryDm,___________bfpry:被分配人员__________Dm:代码 String bspryMc,___________bspry:???人员_____________Mc:名称 String lxrXm,_____________lxr:联系人________________Xm:姓名 String lxrDh,_____________lxr:联系人________________Dh:电话 String lxrDz,_____________lxr:联系人________________Dz:地址 String lxrYb,_____________lxr:联系人________________Yb:邮编 Date sjSc,________________sj:时间___________________Sc:审查? Date sjFs,________________sj:时间___________________Fs:复审? Date sjTjfh,______________sj:时间___________________Tjfh:统计复核 Date sjTjqf,______________sj:时间___________________Tjfh:统计签发 String hjLx,______________hj:合计??汇价?____________Lx:类型??利息?? BigDecimal fpfs,__________fpfs:发票 fs 复审? BigDecimal jeHj,__________jehj:金额合计 BigDecimal seHj,__________seHj:数额合计? BigDecimal jshjHj,________jshjHj:结算合计? String qtqk,______________qtqk:其他情况 BigDecimal tseY,__________tse:退税额________________Y:已办理? BigDecimal tseZbbl,_______tse:退税额________________Zbbl:暂不办理? String fhsm,______________fhsm:返还数目? Date fuhjzrq,_____________fuhjzrq:?? rq日期 Date rqTk,________________rq:日期___________________Tk:退款 Date sjFuhfs,_____________sj:时间___________________Fuhfs:?? String dyfhBh,____________dyfh:抵押返还_____________Bh:编号 String yqfhBz,____________dyfh:抵押返还_____________Bz:标准 String fhBz,______________fh:返还___________________Bz:标准 String cbBz,______________cb:操办?__________________Bz:标准 Date sjCbhfs______________sj:时间___________________Cbhfs:发送 好吧,我很无聊.... ps:感谢google输入法友情支持... 你蛋疼的让我佩服... 那个构造方法的大师的拼音真不错。。。。 |
|
返回顶楼 | |
发表时间:2011-05-13
有什么大惊小怪的,很正常啦...HIBERNATE映射的时候自动生成,一般都懒的删,从来不用的...
|
|
返回顶楼 | |
发表时间:2011-05-13
jinzhen1978 写道 这种代码很常见,hibernate生成的pojo都是这样的,你们没有注意吗?
感觉像拼音... |
|
返回顶楼 | |