@@ -68,7 +68,7 @@ public Optional<Relationship> findById(UUID id) {
6868 CriteriaQuery <RelationshipImpl > query = builder .createQuery (RelationshipImpl .class );
6969 Root <RelationshipImpl > root = query .from (RelationshipImpl .class );
7070 query .select (root ).where (builder .and (
71- builder .equal (root .get (RelationshipImpl_ .identifier ), id ),
71+ builder .equal (root .get (RelationshipImpl_ .elementId ), id ),
7272 getTypeExpression (builder , root )
7373 ));
7474 try {
@@ -98,7 +98,7 @@ public List<Relationship> findAll(@Nullable UUID after, @Nullable UUID before, i
9898 Root <RelationshipImpl > root = query .from (RelationshipImpl .class );
9999 query .select (root );
100100 Expression <Boolean > where = getTypeExpression (builder , root );
101- Paginated <TypedQuery <RelationshipImpl >> paginated = paginateQuery (after , before , maxResults , query , builder , em , root .get (RelationshipImpl_ .identifier ), where );
101+ Paginated <TypedQuery <RelationshipImpl >> paginated = paginateQuery (after , before , maxResults , query , builder , em , root .get (RelationshipImpl_ .elementId ), where );
102102 List <Relationship > result = paginated .get ()
103103 .getResultStream ()
104104 .map (o -> (Relationship ) o )
@@ -146,11 +146,11 @@ public List<Relationship> findAllByCommitRelatedElement(Commit commit, Element r
146146 throw new IllegalArgumentException ("Unknown RelationshipDirection provided: " + direction .name ());
147147 }
148148 return related
149- .map (Element ::getIdentifier )
150- .anyMatch (id -> id .equals (relatedElement .getIdentifier ()));
149+ .map (Element ::getElementId )
150+ .anyMatch (id -> id .equals (relatedElement .getElementId ()));
151151 }
152152 );
153- Paginated <Stream <Relationship >> paginatedStream = paginateStream (after , before , maxResults , stream , Relationship ::getIdentifier );
153+ Paginated <Stream <Relationship >> paginatedStream = paginateStream (after , before , maxResults , stream , Relationship ::getElementId );
154154 List <Relationship > result = paginatedStream .get ()
155155 .map (relationship -> JpaDataDao .resolve (relationship , Relationship .class ))
156156 .collect (Collectors .toList ());
0 commit comments