Results 1 to 2 of 2

Thread: HibernateTemplate().update question

  1. #1

    Question HibernateTemplate().update question

    I want to use following SQL by HibernateTemplate().update:

    update mytable1,mytable2 set mytable1.name='Jack',mytable2.salary='999' where mytable1.id='1' and mytable2.work='true' and mytable1.id=mytable2.id

    How to realize it by using HibernateTemplate().update?

    Thanks in advance!

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

    Default

    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
  •