Hm, the default unsaved values for integers is 0, I'm not sure what NHibernate response in this case will be, but it is probably not going to do anything to the instance.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Carlos Ble > Sent: Friday, August 25, 2006 4:00 PM > To: castleproject-users@lists.sourceforge.net > Subject: [Castle-users] FindByPrimaryKey returning transient instances > > Hi! > I have a problem with ActiveRecordBase.FindByPrimaryKey. I think that > the proble is in NHibernate.Session.Load: If the instance is not null > but the object Id is 0 instead of >0, the instance object is transient > instead of persistent. Can I consider this a bug?. > Thanks > > > -- > Carlos Ble > Shidix Technologies > www.shidix.com/carlosble > > > > ----------------------------------------------------------------------- > -- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job > easier Download IBM WebSphere Application Server v.1.0.1 based on > Apache Geronimo > http://sel.as- > us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > CastleProject-users mailing list > CastleProject-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/castleproject-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ CastleProject-users mailing list CastleProject-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/castleproject-users