Created
April 29, 2020 08:58
-
-
Save dmi3coder/0537eefc27ac65b10d6691afbcedf01a to your computer and use it in GitHub Desktop.
Data classes for Quarkus GraphQL example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.quarkify.data; | |
public class Team { | |
public Long id; | |
public String name; | |
public User[] users; | |
public Team(Long id, String name, User... users) { | |
this.id = id; | |
this.name = name; | |
this.users = users; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.quarkify.data; | |
public class User { | |
public Long id; | |
public String name; | |
public User(Long id, String name) { | |
this.id = id; | |
this.name = name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment