Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unidirectional edge in remote conections. #1832

Open
mdre opened this issue Nov 22, 2024 · 0 comments
Open

Unidirectional edge in remote conections. #1832

mdre opened this issue Nov 22, 2024 · 0 comments

Comments

@mdre
Copy link

mdre commented Nov 22, 2024

ArcadeDB Version: 24.11.2

Unidirectional edge are not supported in RemoteDatabase. This feature is needed to keep graph relations.

This line of code:

MutableEdge oe = v.newEdge(graphRelationName, ((IObjectProxy) innerO).___getVertex(),false);

throw:

java.lang.UnsupportedOperationException: Creating unidirectional edges is not supported from remote database
    at com.arcadedb.remote.RemoteVertex.newEdge(RemoteVertex.java:136)
    at com.arcadedb.remote.RemoteMutableVertex.newEdge(RemoteMutableVertex.java:189)
    at net.adbogm.Transaction.store(Transaction.java:593)
    at net.adbogm.SessionManager.store(SessionManager.java:189)

Could this lines be omited in RemoteVertex.java?

public MutableEdge newEdge(final String edgeType, final Identifiable toVertex, final boolean bidirectional,
      Object... properties) {
    if (!bidirectional)
      throw new UnsupportedOperationException("Creating unidirectional edges is not supported from remote database");

     ...
mergify bot added a commit that referenced this issue Nov 24, 2024
…na-edges-on-remote

#1832 add support for unidirectional edge creation on remote database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant