mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
Merge branch 'DS-3280' of https://github.com/sedici/DSpace
This commit is contained in:
@@ -93,7 +93,7 @@ public class HandleDAOImpl extends AbstractHibernateDAO<Handle> implements Handl
|
||||
@Override
|
||||
public int updateHandlesWithNewPrefix(Context context, String newPrefix, String oldPrefix) throws SQLException
|
||||
{
|
||||
String hql = "UPDATE handle set handle = concat(:newPrefix,'/',id WHERE handle like :oldPrefix%";
|
||||
String hql = "UPDATE Handle set handle = concat(:newPrefix,'/',id) WHERE handle like concat(:oldPrefix,'%')";
|
||||
Query query = createQuery(context, hql);
|
||||
query.setString("newPrefix", newPrefix);
|
||||
query.setString("oldPrefix", oldPrefix);
|
||||
|
Reference in New Issue
Block a user