You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: HibernateSpringBootCalculatePropertyGenerated/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
7
7
**Calculate at `INSERT` time:**
8
8
- annotate the corresponding persistent field with `@Generated(value = GenerationTime.INSERT)`
9
-
- annotate the corresponding persistent field with `@Column(insertable = false)`\
9
+
- annotate the corresponding persistent field with `@Column(insertable = false)`
10
10
11
11
**Calculate at `INSERT` and `UPDATE` time:**
12
12
- annotate the corresponding persistent field with `@Generated(value = GenerationTime.ALWAYS)`
@@ -15,7 +15,7 @@
15
15
**Further, apply:**
16
16
17
17
**Method 1:**
18
-
- if the database schema is generated via JPA annotations (not recommended) then use `columnDefinition` element of `@Column` to specify as an SQL query expression the formula for calculating the persistent property\
18
+
- if the database schema is generated via JPA annotations (not recommended) then use `columnDefinition` element of `@Column` to specify as an SQL query expression the formula for calculating the persistent property
19
19
20
20
**Method 2:**
21
21
- if the database schema is not generated via JPA annotations (recommended way) then add the formula as part of schema in `CREATE TABLE`
0 commit comments