Skip to content

Commit c3f597f

Browse files
authored
Expose IDs for events and news (#912)
1 parent c273907 commit c3f597f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/src/main/kotlin/hu/bme/sch/cmsch/component/event/EventEntity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.springframework.core.env.Environment
2323
data class EventEntity(
2424
@Id
2525
@GeneratedValue
26-
@field:JsonView(value = [ Edit::class ])
26+
@field:JsonView(value = [ Edit::class, Preview::class, FullDetails::class ])
2727
@Column(nullable = false)
2828
@property:GenerateInput(type = InputType.HIDDEN, visible = true, ignore = true)
2929
@property:GenerateOverview(renderer = OverviewType.ID, columnName = "ID", order = -1)

backend/src/main/kotlin/hu/bme/sch/cmsch/component/news/NewsEntity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import org.springframework.core.env.Environment
2323
data class NewsEntity(
2424
@Id
2525
@GeneratedValue(strategy = GenerationType.SEQUENCE)
26-
@field:JsonView(value = [ Edit::class ])
26+
@field:JsonView(value = [ Edit::class, Preview::class, FullDetails::class ])
2727
@Column(nullable = false)
2828
@property:GenerateInput(type = InputType.HIDDEN, visible = true, ignore = true)
2929
@property:GenerateOverview(renderer = OverviewType.ID, columnName = "ID", order = -1)

0 commit comments

Comments
 (0)