Skip to content

Commit

Permalink
files modified
Browse files Browse the repository at this point in the history
  • Loading branch information
RudyLuvIt committed Nov 21, 2024
1 parent f2edb78 commit 579863e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.alom.dorundorunbe.domain.Achievement.domain;

import com.alom.dorundorunbe.global.util.BaseEntity;
import com.alom.dorundorunbe.domain.user.domain.User;
import com.alom.dorundorunbe.global.util.BaseEntity;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Ranking extends BaseEntity {
private Long id;

@OneToOne
@JoinColumn(name = "user_id", nullable = false) // user_id를 기반으로 연결
@JoinColumn(name = "user_id", nullable = false)
private User user;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import com.alom.dorundorunbe.domain.ranking.domain.Ranking;
import com.alom.dorundorunbe.global.util.BaseEntity;
import jakarta.persistence.*;
import lombok.*;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.Getter;
import lombok.Builder;

@Entity @Getter
@Setter
Expand Down

0 comments on commit 579863e

Please sign in to comment.