Results 1 to 2 of 2
  1. #1
    Marty is offline Member
    Join Date
    May 2007
    Rep Power

    Default composite-id and hibernate

    Hello I have the following problem:
    I have a composite-id with 4 fields, they belong to a multitable;inside of this fields I have to update two dates
    to do this I obtain the entity, then I modify them from facade and I send them again to the service.update..

    it returns me this:

    R org.hibernate.HibernateException: Unexpected row count: 0 expected: 1
    at org.hibernate.jdbc.NonBatchingBatcher.addToBatch(N


  2. #2
    Alan is offline Member
    Join Date
    May 2007
    Rep Power


    mmm if the fields are ids, delete the record from the table, and create them again.
    try this and then, tell me
    good luck!
    Last edited by Alan; 06-01-2007 at 01:47 PM.

Similar Threads

  1. composite-id problem hibernate
    By javadev in forum JDBC
    Replies: 14
    Last Post: 07-27-2009, 06:30 PM
  2. composite key Hibernate
    By Problem in forum Web Frameworks
    Replies: 0
    Last Post: 07-25-2007, 11:13 AM
  3. Replies: 2
    Last Post: 06-30-2007, 03:01 PM
  4. Hibernate
    By Alan in forum JDBC
    Replies: 2
    Last Post: 05-11-2007, 01:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts