blob: f7a871173734b8db236978bc6a3adb0c4f72cc84 [file] [log] [blame]
22301138f6824512025-06-04 02:03:13 +08001package com.example.myproject.entity;
2
3import javax.persistence.*;
4
5@Entity
6@Table(name = "collections")
7public class Collections {
8
9 @Id
10 @GeneratedValue(strategy = GenerationType.IDENTITY)
11 @Column(name = "collectionId")
12 private Long collectionId;
13
14 @Column(name = "user_id")
15 private Long userId;
16
17 @Column(name = "postNo")
18 private Long postNo;
19
20 // Getters and Setters
21 public Long getCollectionId() {
22 return collectionId;
23 }
24
25 public void setCollectionId(Long collectionId) {
26 this.collectionId = collectionId;
27 }
28
29 public Long getUserId() {
30 return userId;
31 }
32
33 public void setUserId(Long userId) {
34 this.userId = userId;
35 }
36
37 public Long getPostNo() {
38 return postNo;
39 }
40
41 public void setPostNo(Long postNo) {
42 this.postNo = postNo;
43 }
44}