ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Nayak" <chetannay...@gmail.com>
Subject Re: Auxiliary insert parameter
Date Fri, 15 Feb 2008 12:15:38 GMT
why don't you just hard code it to some value .
Something like to_tsvector(' ',#item_name#).
Hope this helps

Thanks
Chetan



On 2/15/08, oliverw <oliver@weichhold.com> wrote:
>
>
> <insert id="insertItemName" parameterClass="com.foo.bar.model.ItemName" >
> INSERT INTO item_names (item_id, item_name, item_name_tsv, culture_id)
> VALUES(#item_id#, #item_name#, to_tsvector(#ts_config#, #item_name#),
> #culture_id# )
> </insert>
>
> In the above insert statement the #ts_config# is only needed as an
> argument
> to the to_tsvector() function call. Thus I would like to avoid making
> ts_config a member of the ItemName bean.
>
> Unfortunately I am not sure how to pass the value of #ts_config# in
> addition
> to the ItemName object to the insert statement. Any suggestions?
> --
> View this message in context:
> http://www.nabble.com/Auxiliary-insert-parameter-tp15499629p15499629.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Mime
View raw message