Skip to content

Commit c29601d

Browse files
author
Grzegorz Piwowarek
committed
Refactor Bar.java
1 parent 826b69f commit c29601d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spring-hibernate4/src/main/java/com/baeldung/persistence/model

‎spring-hibernate4/src/main/java/com/baeldung/persistence/model/Bar.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static OPERATION parse(final String value) {
8080
@Column(name = "timestamp")
8181
private long timestamp;
8282

83-
@Column(name = "created_date")
83+
@Column(name = "created_date", updatable = false, nullable = false)
8484
@CreatedDate
8585
private long createdDate;
8686

0 commit comments

Comments
 (0)