jerqi commented on code in PR #7734: URL: https://github.com/apache/gravitino/pull/7734#discussion_r2275246523
########## 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: OK, I extracted a helper class for 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: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org