Re: [ars-machina] [Tapestry-CRUD] - Batch update returned unexpected row count from update [0]
Brought to you by:
thiagohp
From: <ars...@li...> - 2009-11-08 16:55:28
|
Em Sun, 08 Nov 2009 14:31:04 -0200, <ars...@li...> escreveu: > Hi again, Olá! > org.hibernate.StaleStateException: Batch update returned unexpected row > count from update [0]; actual row count: 0; expected: 1 This surely looks like a Hibernate class mapping error or Hibernate user error. By the way, it looks like you're using the login as the primary key. I strongly advise you to only use database-generated primary keys (autoincrement, identity, etc). It makes you life easier and joins faster. See you! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br |