Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8cba4bc

Browse files
author
Rajeev Kumar Singh
committed
updatable=false in createdAt
1 parent d04a918 commit 8cba4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎jpa-one-to-many-demo/src/main/java/com/example/jpa/model/AuditModel.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
)
1919
public abstract class AuditModel implements Serializable {
2020
@Temporal(TemporalType.TIMESTAMP)
21-
@Column(name = "created_at", nullable = false)
21+
@Column(name = "created_at", nullable = false, updatable = false)
2222
@CreatedDate
2323
private Date createdAt;
2424

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /