Mike, you are right... I guess I was too quick with my changes... should test more the next time. Didn't see all those errors in my environment. Looks nicer to me the way you did it ;-)
Had anyway some headaches seeing the commons-lang dependency all alone in those apps. Hope to add a bit more usable code the next time ;-) Aleks On Wed, 2004-07-07 at 19:03, Michael Nash JGlobal.com wrote: > Aleks: > > I've just removed commons 2.0 everywhere (and implemented equals and hashCode > without it for the moment), and I'm getting much fewer unit test errors, in fact, > only some validation exceptions now, which might be "real" bugs :-) > > I think the jar version is definitely part of the issue....I'm not caught up on > emails from the list, but can you give me the short version of why you wanted to > implement hashCode and equals with commons-lang? E.g. is is not possible to do > something like the following instead: > > public boolean equals(Object object) { > if (!(object instanceof Question)) { > return false; > } > Question rhs = (Question) object; > if ((rhs.getPollId().equals(getPollId())) > && (rhs.getQuestionId().equals(getQuestionId()))) { > return true; > } > return false; > } > > and > > public int hashCode() { > return new String(getPollId().toString() + > getQuestionId().toString()).hashCode(); > } > > ? > > Mike > > On Wed, 7 Jul 2004 18:31:05 +0200 > "Vidakovic Aleksandar" <[EMAIL PROTECTED]> wrote: > > > Is it really 1.0.1 that is included in Hibernate 2.1.4?? I'm using 2.0 and had not > > the errors you described... but I have to admit that I'm still struggling to get > > my app back to work after a big jar update and with all the new features which are > > now in CVS... will try the same. > > > > Aleks > > > > -----Ursprüngliche Nachricht----- > > Von: Michael Nash JGlobal.com [mailto:[EMAIL PROTECTED] > > Gesendet: Mittwoch, 7. Juli 2004 18:20 > > An: [EMAIL PROTECTED] > > Betreff: Re: [Keelgroup] Hibernate dependencies... > > > > > > Aleks: > > > > Hibernate 2.1.4 uses commons-lang-1.0.1, but I see we've got 2.0 in poll, etc. > > Could this be the cause of the nosuchmethod stuff? I'll try the earlier version > > here, as I don't want a "custom" version of Hibernate with the later jar. > > > > Mike > > > > On Wed, 7 Jul 2004 10:51:43 -0400 > > "Michael Nash JGlobal.com" <[EMAIL PROTECTED]> wrote: > > > > > Aleks: > > > > > > I do indeed see the commons-lang jar - it's possible to put this in > > > keel-common/lib, and it will be included in all modules that reference > > > keel-common (which is just about all modules, if I recall correctly). > > > > > > Even with that jar in place I'm still getting a no such method error, though, > > > very strange... > > > > > > Mike > > > > > > On Wed, 7 Jul 2004 10:33:59 +0200 > > > "Vidakovic Aleksandar" <[EMAIL PROTECTED]> wrote: > > > > > > > Too fast with the apologies ;-) Didn't make an update of my office > > > > environment... forget the thing about the common-lang jars... but second part > > > > is still interesting to me: how do you add dependencies to one project that > > > > are already defined by another project (let's say keel-common) without copying > > > > the jars to the lib directory? > > > > > > > > Cheers, > > > > > > > > Aleks > > > > > > > > -----Ursprüngliche Nachricht----- > > > > Von: Vidakovic Aleksandar > > > > Gesendet: Mittwoch, 7. Juli 2004 10:21 > > > > An: Keel (E-Mail) > > > > Betreff: [Keelgroup] Hibernate dependencies... > > > > > > > > > > > > Salut all, > > > > > > > > again I have to apologize: yesterday I changed app-hoj, app-register and > > > > app-poll and forgot that the hash code and the equals methods need > > > > commons-lang version 2.0. Could someone be so kind to add this to these > > > > projects? BTW: how would you add a jar dependency without copying the jar to > > > > every project where it's needed? Is there a way to include the jars from > > > > keel-common? > > > > > > > > Cheers, > > > > > > > > Aleks > > > > http://keelframework.org/documentation > > > > Keelgroup mailing list > > > > [EMAIL PROTECTED] > > > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > > > > http://keelframework.org/documentation > > > > Keelgroup mailing list > > > > [EMAIL PROTECTED] > > > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > > > > > > > > > -- > > > Michael Nash > > > > > > JGlobal Ltd > > > Next-Generation Web Application Development and Open Source Support > > > http://www.jglobal.com > > > > > > Bahamas Commerce and Trade > > > Offshore eCommerce Hosting and Business Services > > > http://www.bahamascommerce.com > > > > > > http://keelframework.org/documentation > > > Keelgroup mailing list > > > [EMAIL PROTECTED] > > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > > > > > > -- > > Michael Nash > > > > JGlobal Ltd > > Next-Generation Web Application Development and Open Source Support > > http://www.jglobal.com > > > > Bahamas Commerce and Trade > > Offshore eCommerce Hosting and Business Services > > http://www.bahamascommerce.com > > > > http://keelframework.org/documentation > > Keelgroup mailing list > > [EMAIL PROTECTED] > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > > http://keelframework.org/documentation > > Keelgroup mailing list > > [EMAIL PROTECTED] > > http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com > http://keelframework.org/documentation Keelgroup mailing list [EMAIL PROTECTED] http://lists.keelframework.com/listinfo.cgi/keelgroup-keelframework.com