Re: iBator EqualsHashCodePlugin: NullPointerExceptions in equal method

2009-03-25 Thread Jeff Butler
> > sb.append(getterMethod); > sb.append("().equals(other."); //$NON-NLS-1$ > sb.append(getterMethod); > sb.append("())"); //$NON-NLS-1$ > > > Cheers > Benjamin > > -Ursprüngliche Nachricht----- > Von: Benjamin Klatt [mailto:benja...@bar54.

AW: iBator EqualsHashCodePlugin: NullPointerExceptions in equal method

2009-03-25 Thread Benjamin Klatt
ther."); //$NON-NLS-1$ sb.append(getterMethod); sb.append("())"); //$NON-NLS-1$ Cheers Benjamin -Ursprüngliche Nachricht- Von: Benjamin Klatt [mailto:benja...@bar54.de] Gesendet: Mittwoch, 25. März 2009 13:32 An: user-java@ibatis.apache.org Betreff: iBator EqualsHashCod

iBator EqualsHashCodePlugin: NullPointerExceptions in equal method

2009-03-25 Thread Benjamin Klatt
Hey all, we found an issue about the equal method. Imagine you have a data object - |Product| - |id | |name | |desc | - And generate the java classes as well as the equal methods (id = Integer, name&desc = String). The Code Product p1 = new Product(); p1