Commit 0ab37363 authored by Ghitha Dinan's avatar Ghitha Dinan

json format fixing

parent 2a5a0a18
...@@ -27,11 +27,11 @@ data class ApplicationCategory( ...@@ -27,11 +27,11 @@ data class ApplicationCategory(
var image: String? = null, var image: String? = null,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
...@@ -22,11 +22,11 @@ data class Province( ...@@ -22,11 +22,11 @@ data class Province(
var name: String? = null, var name: String? = null,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
...@@ -27,11 +27,11 @@ data class Regency( ...@@ -27,11 +27,11 @@ data class Regency(
var province: Province? = null, var province: Province? = null,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
...@@ -33,11 +33,11 @@ data class Role( ...@@ -33,11 +33,11 @@ data class Role(
var regency: Regency? = null, var regency: Regency? = null,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
...@@ -22,11 +22,11 @@ data class Tag( ...@@ -22,11 +22,11 @@ data class Tag(
var name: String? = null, var name: String? = null,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
...@@ -43,7 +43,7 @@ data class Users( ...@@ -43,7 +43,7 @@ data class Users(
var confirmed: Boolean? = false, var confirmed: Boolean? = false,
@Column(name = "confirmed_date") @Column(name = "confirmed_date")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
@JsonIgnore @JsonIgnore
var confirmedDate: Date? = null, var confirmedDate: Date? = null,
...@@ -52,14 +52,14 @@ data class Users( ...@@ -52,14 +52,14 @@ data class Users(
var loggedIn: Boolean? = false, var loggedIn: Boolean? = false,
@Column(name = "created_at") @Column(name = "created_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var createdAt: Date? = Date(), var createdAt: Date? = Date(),
@Column(name = "updated_at") @Column(name = "updated_at")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var updatedAt: Date? = Date(), var updatedAt: Date? = Date(),
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7") @get:JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy HH:mm:ss", timezone = "GMT+7")
var lastLogin: Date? = Date(), var lastLogin: Date? = Date(),
@Column(name = "active") @Column(name = "active")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment