portfolio
Toggle table of contents
0.0.1-SNAPSHOT
jvm
Platform filter
jvm
Switch theme
Search in API
portfolio
portfolio
/
org.project.portfolio.article.domain
/
Comment
Comment
@
Entity
(
name
=
"article_comments"
)
@
SoftDelete
(
columnName
=
"is_deleted"
)
class
Comment
(
var
id
:
Long
=
0
,
var
content
:
String
,
var
authorId
:
Long
,
var
articleId
:
Long
,
var
createdAt
:
Instant
=
Instant.now()
,
var
updatedAt
:
Instant
=
Instant.now()
)
:
AbstractAggregateRoot
<
Comment
>
Members
Constructors
Comment
Link copied to clipboard
constructor
(
id
:
Long
=
0
,
content
:
String
,
authorId
:
Long
,
articleId
:
Long
,
createdAt
:
Instant
=
Instant.now()
,
updatedAt
:
Instant
=
Instant.now()
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
article
Id
Link copied to clipboard
var
articleId
:
Long
author
Id
Link copied to clipboard
var
authorId
:
Long
content
Link copied to clipboard
var
content
:
String
created
At
Link copied to clipboard
var
createdAt
:
Instant
id
Link copied to clipboard
var
id
:
Long
updated
At
Link copied to clipboard
var
updatedAt
:
Instant
Functions
update
Link copied to clipboard
fun
update
(
content
:
String
)
:
Comment
댓글 수정 메소드