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

Allow definition of typed relations in templates types #159

Open
DirkMahler opened this issue Jan 9, 2015 · 0 comments
Open

Allow definition of typed relations in templates types #159

DirkMahler opened this issue Jan 9, 2015 · 0 comments
Assignees

Comments

@DirkMahler
Copy link
Member

Currently typed relations may only be used between types with explicit labels. It shall be possible to specify typed relations in templates, e.g.

public interface Template1 {
  TemplateRelation getTemplateRelation();
}

public interface Template2 {
  TemplateRelation getTemplateRelation();
}

public interface TemplateRelation {
  @Outgoing
  Template1 getTemplate1();

  @Incoming
  Template2 getTemplate2();
}

@Label
public interface A1 extends Template1 {
}

@Label
public interface A2 extends Template1 {
}

@Label
public interface B1 extends Template2 {
}

@Label
public interface B2 extends Template2 {
}
@DirkMahler DirkMahler self-assigned this Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant