Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.mtvs.devlinkbackend.character.entity;

import com.mtvs.devlinkbackend.util.IntegerListConverter;
import com.mtvs.devlinkbackend.util.LongListConverter;
import jakarta.persistence.*;
import lombok.Getter;

Expand All @@ -17,11 +19,24 @@ public class UserCharacter {
@Column(name = "ACCOUNT_ID", unique = true)
private String accountId;

@Column(name = "GUILD_ID")
private Long guildId;

@Convert(converter = LongListConverter.class)
@Column(name = "TEAM_ID_LIST")
private List<Long> teamIdList;

@Column(name = "CHARACTER_PICTURE", columnDefinition = "TEXT")
private String characterPicture;

@ElementCollection
@CollectionTable(name = "STATUS_LIST", joinColumns = @JoinColumn(name = "CHARACTER_ID"))
@Column(name = "STATUS")
private List<Integer> status;

@Column(name = "USER_ID")
private Long userId;

public UserCharacter() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package com.mtvs.devlinkbackend.evaluation.command.model.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mtvs.devlinkbackend.user.command.model.entity.SkillCategoryInfo;
import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;

import java.time.LocalDateTime;

@Table(name = "EVALUATION")
@Entity(name = "Evaluation")
@Getter
@Setter
@ToString(exclude = "categoryInfo")
@NoArgsConstructor
public class Evaluation {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "EVALUATION_ID")
private Long evaluationId;

@Column(name = "USER_ID")
private Long userId;

@Column(name = "CAUSE")
private String cause;

@Column(name = "POINT")
private Integer point;

@CreationTimestamp
@Column(name = "CREATED_AT", updatable = false)
private LocalDateTime createdAt;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "SKILL_CATEGORY_INFO_ID", nullable = false)
@JsonIgnore
private SkillCategoryInfo skillCategoryInfo;

public Evaluation(Long userId, String cause, Integer point, LocalDateTime createdAt) {
this.userId = userId;
this.cause = cause;
this.point = point;
this.createdAt = createdAt;
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.mtvs.devlinkbackend.guild.repository;

import com.mtvs.devlinkbackend.guild.entity.Guild;
import com.mtvs.devlinkbackend.guild.repository.projection.Guild_GuildName;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
Expand All @@ -14,4 +15,5 @@ public interface GuildRepository extends JpaRepository<Guild, Long> {
List<Guild> findGuildsByOwnerId(String ownerId);
@Query("SELECT g FROM Guild g JOIN g.memberList m WHERE m LIKE :memberId")
List<Guild> findGuildsByMemberIdContaining(@Param("memberId") String accountId);
Guild_GuildName findByGuildId(Long guildId);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.mtvs.devlinkbackend.guild.repository.projection;

public interface Guild_GuildName {
String getGuildName();
}

This file was deleted.

This file was deleted.

Loading