-
-
Save iyengarajay/81e8bca22a6f97ab6dbb0412d937de56 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 User { | |
@Id | |
@GeneratedValue(strategy = GenerationType.AUTO) | |
private Long id; | |
private String firstName; | |
private String lastName; | |
@Convert(converter=EmailAddressConverter.class) | |
private EmailAddress email; | |
@ManyToOne | |
private SocialMediaSite socialMediaSite; | |
//Other details. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment