jerryshao commented on code in PR #7734:
URL: https://github.com/apache/gravitino/pull/7734#discussion_r2275237249
##########
core/src/main/java/org/apache/gravitino/Entity.java:
##########
@@ -105,4 +106,147 @@ default void validate() throws IllegalArgumentException {
* @return The type of the entity as defined by {@link EntityType}.
*/
EntityType type();
+
+ /**
+ * Represents a relational entity that contains an entity, its vertex type,
related identifiers,
+ * and the type of related entity.
+ *
+ * @param <E> the type of the entity, which must extend {@link Entity} and
implement {@link
+ * HasIdentifier}
+ */
+ interface RelationalEntity<E extends Entity & HasIdentifier> {
Review Comment:
You don't have to implement this `RelationalEntity` under `Entity`, use a
class file to define this.
--
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]