rhj | e18c3f7 | 2025-06-08 00:27:01 +0800 | [diff] [blame^] | 1 | package entity; |
| 2 | |
| 3 | import javax.persistence.Column; |
| 4 | import javax.persistence.Entity; |
| 5 | import javax.persistence.Id; |
| 6 | import javax.persistence.Table; |
| 7 | |
| 8 | import com.querydsl.core.annotations.QueryEntity; |
| 9 | |
| 10 | @QueryEntity |
| 11 | @Entity(name = "Admin") |
| 12 | @Table(name = "admin") |
| 13 | public class Admin { |
| 14 | |
| 15 | @Id |
| 16 | @Column(name = "user_id", length = 36, nullable = false) |
| 17 | public String userId; |
| 18 | |
| 19 | public Admin() { |
| 20 | } |
| 21 | |
| 22 | public Admin(String userId) { |
| 23 | this.userId = userId; |
| 24 | } |
| 25 | } |