Skip to content

Commit

Permalink
#27 add: Product BaseTimeEntity 상속, ArtistInfo JoinColumn 명시
Browse files Browse the repository at this point in the history
  • Loading branch information
sim-mer committed Oct 2, 2024
1 parent 05c5906 commit 3a3751b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/helpmeCookies/product/entity/Product.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.helpmeCookies.product.entity;

import com.helpmeCookies.global.entity.BaseTimeEntity;
import jakarta.persistence.JoinColumn;
import java.util.List;

import com.helpmeCookies.user.entity.ArtistInfo;
Expand All @@ -17,7 +19,7 @@
import lombok.Builder;

@Entity
public class Product {
public class Product extends BaseTimeEntity {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down Expand Up @@ -48,6 +50,7 @@ public class Product {
private List<HashTag> hashTags;

@ManyToOne
@JoinColumn(name = "artist_info_id")
private ArtistInfo artistInfo;

public Product() {}
Expand Down

0 comments on commit 3a3751b

Please sign in to comment.