ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Re: Exception while setting properties
Date Wed, 16 Aug 2006 08:26:32 GMT
On Mon, Aug 14, 2006 at 10:38:33AM -0600, Nathan Maves wrote:
> 
>    what version of the jdk are you using?
>    can you post the sqlmap as well as the set/get method of the property
>    that you are having issues with?

    <select id="loadTask" parameterClass="int" resultClass="com.project.Entity.Task">
	select 
		task_id, 
		customer_id,
		monitor_id,
		status,
		created, 
		start_time,
		stop_time, 
		email, 
		report_condition, 
		track_domain,
		coalesce(use_banner,0) as use_banner,
		coalesce(use_robots,0) as use_robots,
		coalesce(use_cookies,0) as use_cookies,
		includes,
		excludes, 
		redirects,
		error_codes,
		other
	from task_scheduler 
	    where task_id=#value#
    </select>

I added coalesce to avoid nulls
setter method is: 

public void setUse_banner(int use_banner) {
    this.use_banner = use_banner;
}

-- 
Eugene N Dzhurinsky

Mime
View raw message