-
Notifications
You must be signed in to change notification settings - Fork 46
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
Embedded Annotation does not work correctly #48
Comments
ralfeis
added a commit
to ralfeis/graphql-jpa
that referenced
this issue
Nov 1, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I had problems to use the @Embedded Annotation with the previous solution from:
#26
This solution does not "flatten" the attributes, instead it keeps the "normal" java model hierarchy.
So @embeddable Annotations behave like @manytoone and @OnetoOne Annotations.
The query looks like that:
Spaceship (id: "1000"){ name, created { user {id}}, modified {date} }
where "created" and "modified" are of Typ DateAndUser, which is a @embeddable Class
@Embeddable public class DateAndUser { public Date date; @ManyToOne public User user; }
The text was updated successfully, but these errors were encountered: