rzo1 commented on code in PR #271:
URL: https://github.com/apache/openjpa/pull/271#discussion_r4484077650
##########
openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java:
##########
@@ -457,6 +457,23 @@ else if (userObject instanceof Column) {
return breakableLink;
}
+ /**
+ * Finds an edge of the dependency cycle that stems from a logical foreign
+ * key, one the mapping does not know to be enforced by the database.
+ * @param cycle Cycle in the dependency graph.
+ * @return Edge corresponding to a logical foreign key, or null.
+ */
+ private Edge findLogicalLink(List cycle) {
+ for (Object o : cycle) {
+ Edge edge = (Edge) o;
+ Object userObject = edge.getUserObject();
+ if (userObject instanceof ForeignKey && ((ForeignKey)
userObject).isLogical()) {
Review Comment:
Thanks, done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]