Skip to content

Commit

Permalink
[setting #188] 멀티모듈 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
unanchoi committed Jan 17, 2024
1 parent 5c9fef0 commit cd4a532
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public MemberCreateResponseDto updateV2(MemberCreateV2RequestDto request, Long m
}

@Transactional(readOnly = true)
public MemberGetResponseDto getMember(Long id) {
public MemberGetResponseDto getMember(Long id)
{
return MemberGetResponseDto.of(findMemberById(id));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
public class Advertisement {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;

private String adId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
import java.util.List;

import static jakarta.persistence.FetchType.LAZY;
import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
@Getter
@NoArgsConstructor
public class Album extends BaseTimeEntity {

@Id @GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

private String title = "기본 앨범";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.List;

import static jakarta.persistence.EnumType.STRING;
import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
Expand All @@ -17,8 +18,7 @@
@Getter
public class AlbumCover {

@Id
@GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

private int coverNumber;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
@NoArgsConstructor
@Getter
public class AlbumDesign {

@Id @GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

@JoinColumn(name = "album_cover_id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import static jakarta.persistence.EnumType.STRING;
import static jakarta.persistence.FetchType.LAZY;
import static jakarta.persistence.GenerationType.IDENTITY;


@Table(name = "fcm")
Expand All @@ -16,7 +17,7 @@
@Getter
public class FcmEntity {

@Id @GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;
private String fcmToken;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Objects;

import static jakarta.persistence.EnumType.STRING;
import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
Expand All @@ -26,7 +27,7 @@ public class Member extends BaseTimeEntity {

private static final int MEMBER_DELETE_EXPIRE_TIME = 7;

@Id @GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

@Column(length = 6)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
import java.util.Objects;

import static jakarta.persistence.FetchType.LAZY;
import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
@NoArgsConstructor
@Getter
public class Photo extends BaseTimeEntity {

@Id @GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

private String imageUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
@Getter
@NoArgsConstructor
public class Studio {

@Id
@GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

@Column(unique = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
import lombok.NoArgsConstructor;

import static jakarta.persistence.EnumType.STRING;
import static jakarta.persistence.GenerationType.IDENTITY;


@Entity
@Getter
@NoArgsConstructor
public class ServiceVersion {

@Id
@GeneratedValue
@Id @GeneratedValue(strategy = IDENTITY)
private Long id;

@Column(name = "os_type")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public class SlackService {

private final Environment env;


public void sendMessage(String channel, String text) {
try {
Slack slack = Slack.getInstance();
Expand Down

0 comments on commit cd4a532

Please sign in to comment.