Skip to content

Commit

Permalink
Merge pull request #145 from swm-nodriversomabus/BUS-202-MVP1-API-test
Browse files Browse the repository at this point in the history
fix(BE): 사용자 조회 오류 BUS-202-MVP1-API-test
  • Loading branch information
Lemonade255 authored Oct 23, 2023
2 parents e1d9d01 + d1e1a9c commit 2151960
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package com.example.api.social.adapter.out.persistence;


import com.example.api.user.adapter.out.persistence.UserEntity;
import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.ColumnDefault;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import java.util.List;

@Entity
@EntityListeners(AuditingEntityListener.class)
@Getter
Expand All @@ -18,7 +14,6 @@
@AllArgsConstructor
@Table(name = "social")
public class SocialEntity {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long socialId;
Expand Down Expand Up @@ -47,5 +42,4 @@ public class SocialEntity {
// @OneToMany(mappedBy = "social", fetch = FetchType.LAZY)
// @ToString.Exclude
// private List<UserEntity> users;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

import java.util.Optional;


@RequiredArgsConstructor
@Repository
public class SocialPersistenceAdapter implements SaveSocialPort, FindSocialPort {
Expand Down Expand Up @@ -39,5 +38,4 @@ public Optional<SocialEntity> findSocialUser(String id, String provider) {
default -> Optional.empty();
};
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class UserEntity extends BaseEntity {
@Id
@GeneratedValue(strategy = GenerationType.UUID)
@Column(columnDefinition = "BINARY(16)")
@Column(columnDefinition = "BINARY(24)")
private UUID userId;

@OneToOne(fetch = FetchType.LAZY)
Expand Down

0 comments on commit 2151960

Please sign in to comment.