Skip to content

Instantly share code, notes, and snippets.

@atesibrahim
Created August 1, 2022 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atesibrahim/54d139c6c997efacee355c9af1bb211a to your computer and use it in GitHub Desktop.
Save atesibrahim/54d139c6c997efacee355c9af1bb211a to your computer and use it in GitHub Desktop.
GraphQL book
@Getter
@Setter
@RequiredArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@Table(name = "Book")
public class Book {
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long id;
@Column
private String title;
@Column(name = "author_name")
private String authorName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment