Last active
November 20, 2018 21:39
-
-
Save thjanssen/086b64c636e338fb0b1d72461c14042a to your computer and use it in GitHub Desktop.
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
@Entity | |
public class BookGroup { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
@Column(name = "id", updatable = false, nullable = false) | |
private Long id; | |
@OneToMany(mappedBy = "group") | |
private List<Book> books = new ArrayList<Book>(); | |
private String title; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! Could you help me ,I found entity structure here https://www.thoughts-on-java.org/map-association-java-util-map/ but where can I find structure of database tables ?