The parameters passed through queryMap of valuelist are of the string type by default. In hql of the valuelist configuration file, an error is returned if this value is directly assigned to an integer field. Generally, we use transformation functions in hql for processing. The code for copying the code is as follows: entrykeyareasinfoadapterbeanparent?acthibe
The parameters passed through queryMap of valuelist are of the string type by default. In hql of the valuelist configuration file, an error is returned if this value is directly assigned to an integer field. Generally, we use transformation functions in hql for processing. The Code is as follows: entry key = areasInfoAdapter bean parent = abstractHibe
The parameters passed through queryMap of valuelist are of the string type by default. In hql of the valuelist configuration file, an error is returned if this value is directly assigned to an integer field. We generally use transformation functions in hql for processing, as shown below:
The Code is as follows:
19
Id
Desc
From com. berheley. hcms. persistence. model. TBaseAreas as tb
Where tb. status = '1'
/~ HId: and tb. hId = to_number {hId }~ /
/~ OId: and tb. oId = to_number {oId }~ /
Order by tb. code asc
Vo
160000
True
This method is troublesome. function processing must be added to all integer fields, and function incompatibility may occur during database migration. You can use the ValueList configuration to uniformly set integer fields. valuelist will transform the configured parameters before assembling SQL statements. As follows:
The Code is as follows:
,