facebook

save or update data

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #263536 Reply

    Mican
    Member

    Hello I generate a simple java project with hibernate with the reverseengineeringtool. I use mysql innodb. Reading data is no problem. But when I try to save (insert) data and loog in the db the data is not inserted? The applications returns no exception. Must I say in every DAO class commit? Or can I enable somewhere a global autocommit?

    #263552 Reply

    Haris Peco
    Member

    Mican,

    If you use Base DAO you have make complete transaction handling.If you want declarative transaction handling the you can use Spring DAO.There isn’t automatic transaction handling, because nobody know when you want start or end transaction.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: save or update data

You must be logged in to post in the forum log in