Skip to content

Commit

Permalink
refs #42 プレイヤーテーブルを定義
Browse files Browse the repository at this point in the history
  • Loading branch information
averak committed Jan 10, 2024
1 parent f59cdcb commit bc48ae5
Show file tree
Hide file tree
Showing 37 changed files with 4,321 additions and 106 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.averak.gsync.adapter.dao.entity.base;
package net.averak.gsync.adapter.dao.dto.base;

import java.time.LocalDateTime;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class EchoEntity {
public class EchoDto {
/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
Expand Down Expand Up @@ -56,7 +56,7 @@ public class EchoEntity {
*
* @mbg.generated
*/
public EchoEntity(@Nonnull String echoId, @Nonnull String message, @Nonnull LocalDateTime timestamp,
public EchoDto(@Nonnull String echoId, @Nonnull String message, @Nonnull LocalDateTime timestamp,
@Nonnull LocalDateTime createdAt, @Nonnull LocalDateTime updatedAt) {
this.echoId = echoId;
this.message = message;
Expand All @@ -71,7 +71,7 @@ public EchoEntity(@Nonnull String echoId, @Nonnull String message, @Nonnull Loca
*
* @mbg.generated
*/
public EchoEntity() {
public EchoDto() {
super();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.averak.gsync.adapter.dao.entity.base;
package net.averak.gsync.adapter.dao.dto.base;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
package net.averak.gsync.adapter.dao.dto.base;

import java.time.LocalDateTime;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public class PlayerDto {
/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
* database column gsync_player.player_id
*
* @mbg.generated
*/
private String playerId;

/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
* database column gsync_player.friend_id
*
* @mbg.generated
*/
private String friendId;

/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
* database column gsync_player.is_banned
*
* @mbg.generated
*/
private Boolean isBanned;

/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
* database column gsync_player.created_at
*
* @mbg.generated
*/
private LocalDateTime createdAt;

/**
*
* This field was generated by MyBatis Generator. This field corresponds to the
* database column gsync_player.updated_at
*
* @mbg.generated
*/
private LocalDateTime updatedAt;

/**
* This method was generated by MyBatis Generator. This method corresponds to
* the database table gsync_player
*
* @mbg.generated
*/
public PlayerDto(@Nonnull String playerId, @Nonnull String friendId, @Nonnull Boolean isBanned,
@Nonnull LocalDateTime createdAt, @Nonnull LocalDateTime updatedAt) {
this.playerId = playerId;
this.friendId = friendId;
this.isBanned = isBanned;
this.createdAt = createdAt;
this.updatedAt = updatedAt;
}

/**
* This method was generated by MyBatis Generator. This method corresponds to
* the database table gsync_player
*
* @mbg.generated
*/
public PlayerDto() {
super();
}

/**
* This method was generated by MyBatis Generator. This method returns the value
* of the database column gsync_player.player_id
*
* @return the value of gsync_player.player_id
*
* @mbg.generated
*/
@Nonnull
public String getPlayerId() {
return playerId;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of
* the database column gsync_player.player_id
*
* @param playerId
* the value for gsync_player.player_id
*
* @mbg.generated
*/
public void setPlayerId(@Nonnull String playerId) {
this.playerId = playerId;
}

/**
* This method was generated by MyBatis Generator. This method returns the value
* of the database column gsync_player.friend_id
*
* @return the value of gsync_player.friend_id
*
* @mbg.generated
*/
@Nonnull
public String getFriendId() {
return friendId;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of
* the database column gsync_player.friend_id
*
* @param friendId
* the value for gsync_player.friend_id
*
* @mbg.generated
*/
public void setFriendId(@Nonnull String friendId) {
this.friendId = friendId;
}

/**
* This method was generated by MyBatis Generator. This method returns the value
* of the database column gsync_player.is_banned
*
* @return the value of gsync_player.is_banned
*
* @mbg.generated
*/
@Nonnull
public Boolean getIsBanned() {
return isBanned;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of
* the database column gsync_player.is_banned
*
* @param isBanned
* the value for gsync_player.is_banned
*
* @mbg.generated
*/
public void setIsBanned(@Nonnull Boolean isBanned) {
this.isBanned = isBanned;
}

/**
* This method was generated by MyBatis Generator. This method returns the value
* of the database column gsync_player.created_at
*
* @return the value of gsync_player.created_at
*
* @mbg.generated
*/
@Nonnull
public LocalDateTime getCreatedAt() {
return createdAt;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of
* the database column gsync_player.created_at
*
* @param createdAt
* the value for gsync_player.created_at
*
* @mbg.generated
*/
public void setCreatedAt(@Nonnull LocalDateTime createdAt) {
this.createdAt = createdAt;
}

/**
* This method was generated by MyBatis Generator. This method returns the value
* of the database column gsync_player.updated_at
*
* @return the value of gsync_player.updated_at
*
* @mbg.generated
*/
@Nonnull
public LocalDateTime getUpdatedAt() {
return updatedAt;
}

/**
* This method was generated by MyBatis Generator. This method sets the value of
* the database column gsync_player.updated_at
*
* @param updatedAt
* the value for gsync_player.updated_at
*
* @mbg.generated
*/
public void setUpdatedAt(@Nonnull LocalDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
Loading

0 comments on commit bc48ae5

Please sign in to comment.