Created
February 10, 2021 03:13
-
-
Save javatodev/4d8bcaf7bb317a452616629231e668da to your computer and use it in GitHub Desktop.
User Entity
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
package com.javatodev.api.model.user; | |
import lombok.*; | |
import javax.persistence.*; | |
@Entity | |
@Builder | |
@Getter | |
@Setter | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@Table(name = "bank_user") | |
public class UserEntity { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
private Long id; | |
private String username; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment