Skip to content

Commit

Permalink
FLASH-164 refactor: UUIDConverter 위치 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoiWonYu committed Jul 16, 2024
1 parent 26c14da commit db3ba8a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.first.flash.climbing.problem.domain.vo.DifficultyInfo;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import java.util.UUID;
Expand All @@ -24,7 +23,6 @@ public class Problem {
private static final Boolean DEFAULT_IS_EXPIRED = false;

@Id
@Convert(converter = UUIDConverter.class)
@Column(columnDefinition = "BINARY(16)")
private UUID id;
private String imageUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.first.flash.climbing.problem.domain;

import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Index;
Expand Down Expand Up @@ -35,7 +34,6 @@ public class QueryProblem {
private static final int DIFFICULTY_LEVEL_WEIGHT = 2;

@Id
@Convert(converter = UUIDConverter.class)
@Column(columnDefinition = "BINARY(16)")
private UUID id;
private String imageUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.first.flash.climbing.problem.domain;
package com.first.flash.global.converter;

import jakarta.persistence.AttributeConverter;
import jakarta.persistence.Converter;
import java.nio.ByteBuffer;
import java.util.Objects;
import java.util.UUID;

@Converter
@Converter(autoApply = true)
public class UUIDConverter implements AttributeConverter<UUID, byte[]> {

@Override
Expand Down

0 comments on commit db3ba8a

Please sign in to comment.