Re: [Hibernate] HibernateException: identifier of an instance altered

2003-10-06 Thread Tom Herrick
Never mind. Shortly after posting this I discovered the cause of my problem. Some of the records in the database really did have spaces after the value, but MS SQL Server is a little too *helpful* in handling whitespace, so queries like 'select len(catalognumber) ...' or 'select ... where ltr

[Hibernate] HibernateException: identifier of an instance altered

2003-10-03 Thread Tom Herrick
I intermittently receive the following exception from net.sf.hibernate.impl.SessionImpl.flushEntities when trying to save changes to my object under Hibernate. HibernateException: identifier of an instance of com.test.catalog.om.Product altered from 46-606 to 46-606 Note the extra spaces aft