Re: sql joins in ibatis

2006-01-05 Thread radha rukmani
Thanks Nathan,   You are right, I changed the resulMap as, dept.deptName,   Thanks Nathan Maves <[EMAIL PROTECTED]> wrote: Where to start.ClassNotFound is a java error.  You have either misspelled you class name and or package.  Check that you full class name including package is corr

Re: sql joins in ibatis

2006-01-05 Thread Nathan Maves
Where to start.ClassNotFound is a java error.  You have either misspelled you class name and or package.  Check that you full class name including package is correct.The second problem that I see is in your result map.  You specify dept.name when there is no property named that in your Dept.cla

Re: sql joins in ibatis

2006-01-05 Thread radha rukmani
Hi   Can you please give more elaborate explanation.   I changed person.java to look like   public class Person{  private int id;  private String firstName;  private String lastName;  private Date birthDate;  private double weightInKilograms;  private double heightInMeters;  private int dept

Re: sql joins in ibatis

2006-01-04 Thread Alan Chandler
On Wednesday 04 January 2006 22:44, radha rukmani wrote: > Hi > I am new to iBATIS. I was able to run the person example in the ibatis > website. For one table, the example says, > > SELECT >PER_ID as id, >PER_FIRST_NAME as firstName, >PER_

Re: sql joins in ibatis

2006-01-04 Thread Zarar Siddiqi
Consider using composition:   public class Person {     private Dept dept;     ... }   Then you can use a resultMap and assign values to bean properties by doing:     So you'll have:                 ..   Zarar   - Original Message - From: radha rukmani To: