--- main/plugin-core/src/org/ametys/runtime/plugins/core/right/profile/DefaultProfileBasedRightsManager.java 2012-10-23 13:17:53.000000000 +0400 +++ main/plugin-core/src/org/ametys/runtime/plugins/core/right/profile/DefaultProfileBasedRightsManager.java 2013-07-07 09:08:20.000000000 +0400 @@ -2704,6 +2704,15 @@ rs = statement.executeQuery(); if (rs.next()) { + id = rs.getInt(1); + } + } + else if (DatabaseType.DATABASE_HSQLDB.equals(dbType)) + { + statement = connection.prepareStatement("CALL IDENTITY()"); + rs = statement.executeQuery(); + if (rs.next()) + { id = rs.getInt(1); } }