Results 1 to 4 of 4

Thread: hey, Could not execute JDBC batch update

  1. #1
    Join Date
    Jul 2007
    Posts
    7

    Unhappy 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Is it possible to see the stacktrace, HBM, configuration, etc.....?
    Last edited by karldmoore; Aug 29th, 2007 at 10:47 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  3. #3
    Join Date
    Jul 2007
    Posts
    7

    Default

    Quote 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'

  4. #4
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Ok, thanks for posting back! It's nice to know it was solved .
    Last edited by karldmoore; Aug 29th, 2007 at 10:47 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

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