Setting temporal columns

Report a typo

Complete the code below so that the created_time field is set to store a time formatted value.

Java
@Entity
@Table(name = "customers")
public class Customers {

    private String customer_id;

    @Temporal(TemporalType.__________)
    @Column(name = "created_time")
    private Date createdTime;

}
Kotlin
@Entity
@Table(name = "customers")
class Customers {
    
    var customer_id: String? = null

    @Temporal(TemporalType.__________)
    @Column(name = "created_time")
    var createdTime: Date? = null
}
Select one option from the list
___

Create a free account to access the full topic