Skip to content

Commit

Permalink
Merge pull request #196 from twenty-three-23/feature/TT-234
Browse files Browse the repository at this point in the history
TT-234 ThemeEntity DB 반영 값 변경 및 ScriptEntity fk 설정
  • Loading branch information
snacktime81 authored Jul 12, 2024
2 parents 6c62ddd + ceae869 commit 5af1620
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ public class ScriptEntity extends BaseCreatedAtEntity {

@OneToOne
@JoinColumns(value = {
@JoinColumn(name = "major_version"),
@JoinColumn(name = "minor_version"),
@JoinColumn(name = "theme_id")
@JoinColumn(name = "major_version", referencedColumnName = "major_version"),
@JoinColumn(name = "minor_version", referencedColumnName = "minor_version")
})
private VersionEntity version;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class VersionEntity extends BaseCreatedAtEntity {
@Column(name = "minor_version")
private Long minorVersion;
@Id
@Column(name = "theme_id")
@Column(name = "theme_id", insertable = false, updatable = false)
private Long themeId;

@ManyToOne(fetch = FetchType.LAZY)
Expand Down

0 comments on commit 5af1620

Please sign in to comment.