You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ralfeis
added a commit
to ralfeis/graphql-jpa
that referenced
this issue
Nov 1, 2017
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: