package com.example.myproject.entity; | |
import javax.persistence.*; | |
@Entity | |
@Table(name = "collections") | |
public class Collections { | |
@Id | |
@GeneratedValue(strategy = GenerationType.IDENTITY) | |
@Column(name = "collectionId") | |
private Long collectionId; | |
@Column(name = "user_id") | |
private Long userId; | |
@Column(name = "postNo") | |
private Long postNo; | |
// Getters and Setters | |
public Long getCollectionId() { | |
return collectionId; | |
} | |
public void setCollectionId(Long collectionId) { | |
this.collectionId = collectionId; | |
} | |
public Long getUserId() { | |
return userId; | |
} | |
public void setUserId(Long userId) { | |
this.userId = userId; | |
} | |
public Long getPostNo() { | |
return postNo; | |
} | |
public void setPostNo(Long postNo) { | |
this.postNo = postNo; | |
} | |
} |