issue # ExampleEntity 파일 작성

This commit is contained in:
2025-10-31 07:22:59 +00:00
parent 407fdecfff
commit 03187ba9ca

View File

@@ -0,0 +1,28 @@
import lombok.*;
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder
@Entity
@TABLE(name = "example")
public class Example {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
@Column(nullable = true, length = 50)
private String username;
@Builder.Default
@Column(nullable = false)
private Boolean isDeleted = false;
@CreationTimestamp
private LocalDateTime createdAt;
public void delete() {
this.isDeleted = true;
}
}