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

feat: entity direct query supports specifying different spaces. #332

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

CorvusYe
Copy link
Collaborator

as title:
zh: 为数据对象直接查询的功能,提供在实体注解中指定不同space的支持:

// Both are acceptable. The priority is: Space > Table
// 两种都行,优先级:Space > Table
@Space("test") 
@Table(name = "player", schema="test")
public class Player extends GraphBaseVertex {
  // ...
}
@Space("${nebula.space}") // from yml or configuration center
@Table(name = "player", schema="${nebula.space}")
public class Player extends GraphBaseVertex {
  // ...
}

@CorvusYe CorvusYe merged commit bb39d71 into nebula-contrib:master Dec 18, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant