-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from IoTeaTime/develop
release: 서버 배포
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/main/java/org/ioteatime/meonghanyangserver/image/domain/ImageEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.ioteatime.meonghanyangserver.image.domain; | ||
|
||
import jakarta.persistence.*; | ||
import java.time.LocalDateTime; | ||
import lombok.Getter; | ||
import org.ioteatime.meonghanyangserver.group.domain.GroupEntity; | ||
import org.springframework.data.annotation.CreatedDate; | ||
import org.springframework.data.jpa.domain.support.AuditingEntityListener; | ||
|
||
@Getter | ||
@Entity | ||
@Table(name = "image") | ||
@EntityListeners(AuditingEntityListener.class) | ||
public class ImageEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
@Column(nullable = false, length = 50) | ||
private String imageName; | ||
|
||
@JoinColumn(nullable = false) | ||
@ManyToOne(fetch = FetchType.LAZY) | ||
private GroupEntity group; | ||
|
||
@Column(nullable = false, length = 100) | ||
private String imagePath; | ||
|
||
@CreatedDate | ||
@Column(nullable = false) | ||
private LocalDateTime createdAt; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters