diff options
author | Sourabh Sourabh <sourabh.sourabh@est.tech> | 2023-08-18 10:52:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-08-18 10:52:15 +0000 |
commit | 593860b8ed87d21f5618a1ebd5d513952cdddb44 (patch) | |
tree | 38d4f37d6551a14c518fdd1480ccce438b9a432f /cps-ri/src | |
parent | 4303e5e87086e72a1a494968b0b426ca9fc46b30 (diff) | |
parent | 996d0c2b23a70e62853632f0b644b3fe4d212143 (diff) |
Merge "Update of top-level data node fails with SQL error"
Diffstat (limited to 'cps-ri/src')
-rw-r--r-- | cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentPrefetchRepositoryImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentPrefetchRepositoryImpl.java b/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentPrefetchRepositoryImpl.java index 4f056c8f6e..c187f20ea9 100644 --- a/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentPrefetchRepositoryImpl.java +++ b/cps-ri/src/main/java/org/onap/cps/spi/repository/FragmentPrefetchRepositoryImpl.java @@ -94,7 +94,7 @@ public class FragmentPrefetchRepositoryImpl implements FragmentPrefetchRepositor final FragmentEntity fragmentEntity = new FragmentEntity(); fragmentEntity.setId(resultSet.getLong("id")); fragmentEntity.setXpath(resultSet.getString("xpath")); - fragmentEntity.setParentId(resultSet.getLong("parentId")); + fragmentEntity.setParentId(resultSet.getObject("parentId", Long.class)); fragmentEntity.setAttributes(resultSet.getString("attributes")); fragmentEntity.setAnchor(anchorEntityPerId.get(resultSet.getLong("anchorId"))); fragmentEntity.setChildFragments(new HashSet<>()); |