Haim Ashkenazi

Show:

What's happening?

  • Comment: problem updating an object with unique index in scala.

    Hi Olivier, I believe that the things that causes the problem is not the case class itself, but the fact that case class implements hashcode that use ALL variables. That means that if you change one variable, the hashcode changes. We've seen already that if we only use for hashcode variables that does't change, it works fine. As a workaround, I can of-course create a hashcode of only the...

    2009-08-13 04:53:52 UTC in NeoDatis ODB

  • Comment: problem updating an object with unique index in scala.

    Oops, that's a bug. it's fixed. Indeed when I delete the database, it does run, but when I define the hashcode like this: override def hashCode = (login + password + firstName + lastName + email).hashCode it again doesn't. I'm only a hobbyist programmer but it seems to me that if you're taking out the firstName field (the one I'm changing) it will have the same hashcode. the problem is...

    2009-07-29 18:35:06 UTC in NeoDatis ODB

  • Comment: problem updating an object with unique index in scala.

    Hi The previous message was mine. I didn't notice that I wasn't logged in ;) Bye Haim.

    2009-07-29 16:55:42 UTC in NeoDatis ODB

  • problem updating an object with unique index in scala.

    When I'm trying to update an object that has a unique index attached to it, I get the error below. It's like it trying to create a new object instead of updating the existing one. I'm attaching a file that demonstrate this problem. Here is the error I get: Version=1.9.3 , Build=601, Date=19-07-2009-15-19-13, Thread=run-main NeoDatisError:1058:Duplicate key on index login_index ...

    2009-07-29 13:23:00 UTC in NeoDatis ODB

  • Followup: RE: scala: error updating object (unique inde

    Hi Thanks for the quick response. In scala the (== / != ) measures equal, not reference. The full stack trace is: ec2sif:Error while storing object Test$Login(20)=email=null,lastName=null,firstName=null,password=password,login=login org.neodatis.odb.ODBRuntimeException: NeoDatis has thrown an Exception, please help us filling a bug report at...

    2009-07-29 04:01:48 UTC in NeoDatis ODB

  • scala: error updating object (unique index)

    Hi I'm trying out neodatis with scala, and I've got a problem. When trying to update an object that has a unique index on one of it's fields (not the one I'm changing) I get an "Duplicate key on index ..." error. Here is the code I'm trying: ======================== import org.neodatis.odb.{ODB, ODBFactory} import org.neodatis.odb.core.query.IQuery import...

    2009-07-28 20:36:56 UTC in NeoDatis ODB

About Me

  • 2001-09-26 (8 years ago)
  • 334312
  • babysnakes (My Site)
  • Haim Ashkenazi

Send me a message