-
Notifications
You must be signed in to change notification settings - Fork 142
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
No projection #401
No projection #401
Changes from 1 commit
7b6179e
2897b41
7bf5397
4b5892d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,9 +47,9 @@ annotate Authors with | |
*/ | ||
entity Genres { | ||
key ID : Integer; | ||
node : Integer not null; | ||
parent_node : Integer default 0; | ||
name : localized String(255); | ||
descr : localized String(1000); | ||
parent : Association to one Genres on parent.node = parent_node; | ||
parnt : Association to Genres; | ||
children : Composition of many Genres | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need a composition of many here? At the end we want to have a foreign key in the db table which is the result of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It's already there on main. I kept it to minimize the delta to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've missed that it's already in main. You are right, we don't need to make any additional changes, that are not relevant for us. |
||
on children.parnt = $self; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
ID;parent_node;name;node | ||
10;;Fiction;10 | ||
11;10;Drama;11 | ||
12;10;Poetry;12 | ||
13;10;Fantasy;13 | ||
14;10;Science Fiction;14 | ||
15;10;Romance;15 | ||
16;10;Mystery;16 | ||
17;10;Thriller;17 | ||
18;10;Dystopia;18 | ||
19;10;Fairy Tale;19 | ||
20;;Non-Fiction;20 | ||
21;20;Biography;21 | ||
22;21;Autobiography;22 | ||
23;20;Essay;23 | ||
24;20;Speech;24 | ||
ID;parnt_ID;name | ||
10;;Fiction | ||
11;10;Drama | ||
12;10;Poetry | ||
13;10;Fantasy | ||
14;10;Science Fiction | ||
15;10;Romance | ||
16;10;Mystery | ||
17;10;Thriller | ||
18;10;Dystopia | ||
19;10;Fairy Tale | ||
20;;Non-Fiction | ||
21;20;Biography | ||
22;21;Autobiography | ||
23;20;Essay | ||
24;20;Speech |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have a bug, which prevents us to use
parent
as name for the parent association