使用hibernate ORM更新多行

时间:2016-08-27 07:01:21

标签: java sql hibernate

 Table Name : Country
 -----+-----------------+--------------------+----------------- 
    id   | country_name    | country_short_name | country_full_name
    -----+-----------------+--------------------+----------------- 
    1    | Bagladesh       | BD                 |Bagladesh
    -----+-----------------+--------------------+----------------- 
    2    | Bagladesh       | BCDD               |sdriij
    -----+-----------------+--------------------+----------------- 
    3    | India           | IND                |India
    -----+-----------------+--------------------+-----------------

在laravel中我使用

更新多行
Country::where('country_name ', '=', "Bagladesh" )
   ->update(array('country_short_name'    => "BD",
                 'country_full_name'     => "Bangladesh",
             ));

我想使用Hibernate

0 个答案:

没有答案