Created
March 22, 2019 13:07
-
-
Save rinaldodev/555d94899218186c67ad8eebf3026e5b to your computer and use it in GitHub Desktop.
This file contains 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 Usuario { | |
@Id | |
private Long id; | |
@Column | |
private String primeiroNome; | |
@Column | |
private String sobrenome; | |
@Column | |
private String email; | |
@OneToMany(mappedBy = "usuario", fetch = FetchType.LAZY) | |
private List<Endereco> enderecos; // use conscientemente | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment