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

Embedded Annotation does not work correctly #48

Open
ralfeis opened this issue Nov 1, 2017 · 0 comments
Open

Embedded Annotation does not work correctly #48

ralfeis opened this issue Nov 1, 2017 · 0 comments

Comments

@ralfeis
Copy link
Contributor

ralfeis commented 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; }

ralfeis added a commit to ralfeis/graphql-jpa that referenced this issue Nov 1, 2017
jcrygier added a commit 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant