Property元素中的formula允许对象属性包含导出值,比如sum、average、max等的结果。如:
此外,formula还可以基于当前记录的特定属性值从另一个表检索值。例如:
代码
代码
注意:
1,formula="()",里面的是sql语句,字段和表名都应该和数据库相应,而不是字段,若带有参数如cur.id= currencyID,这个currencyID才是对象的东东.
2,formula="( sql )",这个括号不能少,不然会报错,我试了几次,没括号就报错,添上就没问题
3,操作字段一定要用别名
问题:
1,org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property of primitive type setter of
没用别名,会出现这个错误,添个别名就好了
2,如果我要用obj.getSchNum()得到想要的值,该对象(obj)必须是hibernate取得的对象,
3,如果要传入参数,如上面那个,currencyID是该对象的属性,它的值也是有hibernate操作当前对象时,把该属性对应的值自动传入进去
分享到:
相关推荐
Formulan One Formula One 6.0(以下简称F1 6.0)和First Impression 6.0(以下简称FI 6.0)为广泛采用的两个ActiveX控件,例如国内的进销存软件"速达2000里就有采用,用于实现Excel中的大部分常用功能,可能是仅有的少数几...
Formula_One WIN10
Formula One 9.0非常好用,编辑VTS使用模板,一直都在用这个,用了5年了,分享给大家使用。安装版本的这个是,不收费。
VESA Generalized Timing Formula (GTF) Standard.
Formula.One.v6.1
Formulan One Formula One 6.0(以下简称F1 6.0)和First Impression 6.0(以下简称FI 6.0)为广泛采用的两个ActiveX控件,例如国内的进销存软件"速达2000里就有采用,用于实现Excel中的大部分常用功能,可能是仅有的少数几...
formula one 6 类似excel的小控件,含10个例子程序。
FORMULA ONE 中文使用
formula one6 控件
解决乡村卫生室系统无法连Formula One控件,请检查。。。。。问题
Lotus Domino的Formula
Rossmo's formula is a geographic profiling formula to predict where a serial criminal lives. The formula was produced by the mathematician Kim Rossmo. Formula Imagine a map with an overlaying grid...
Formula One 6原装控件Formula One 6原装控件Formula One 6原装控件Formula One 6原装控件Formula One 6原装控件
Formula One OLE Control输出类似Excel格式的报表控件
在使用进销管理系统时出现进销数据无法导出EXCEL,提示不能连接formula one控件。解决办法很简单:1.先在网上下载Formula One控件,文件中有个ttf16.ocx文件和注册OCX控件.bat文件 2.双击“注册OCX控件.bat”会...
Formula One 6控件是一个类Microsoft Excel的表格控件,支持公式与Microsoft Excel兼容性很好。
TTF16.ocx(6.1.6.2) Formula One 控件TTF16.ocx(6.1.6.2) Formula One 控件TTF16.ocx(6.1.6.2) Formula One 控件
A Most Elegant Equation: Euler’s Formula and the Beauty of Mathematics By 作者: David Stipp ISBN-10 书号: 0465093779 ISBN-13 书号: 9780465093779 出版日期: 2017-11-07 pages 页数: (203) An award-...
Formula One 使用手册(英文)。好不容易找到的。希望有所帮助。