Announcement Announcement Module
Collapse
No announcement yet.
hey, Could not execute JDBC batch update Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • hey, Could not execute JDBC batch update

    everyone, im using spring + hibernate building a website, but i encounterd an exception(as title) while saving pojo through hibernate.

    but if i set prop "hibernate.jdbc.batch_size" to "0" , it works ok.

    here is the codes :
    FriendLinkDao :

    Code:
    FriendLink friendLink = new FriendLink();
    friendLink.setOperationDate(new Date());
    friendLink.setStatus(new Integer(1));
    getHibernateTemplate().save(friendLink);
    it is really boring, i have worked for hours but still have no idea. something about RP ?

  • #2
    Is it possible to see the stacktrace, HBM, configuration, etc.....?
    Last edited by karldmoore; Aug 29th, 2007, 11:47 AM.

    Comment


    • #3
      Originally posted by karldmoore View Post
      Is it possible to see the stacktrace, HBM, configuration, etc.....?
      thank u for pay attention, i had solved that. just because my .hbm configuration. i wrote something like this :
      Code:
      <property name="operationDate" column="OPERATIONTIME" type="date"/>
      i changed the 'date' to 'java.util.Date' then it works fine, seems hibernate mistake 'date' as 'java.sql.Date'

      Comment


      • #4
        Ok, thanks for posting back! It's nice to know it was solved .
        Last edited by karldmoore; Aug 29th, 2007, 11:47 AM.

        Comment

        Working...
        X