Skip to content

Commit 96fc596

Browse files
Calculate Entity Persistent Property
1 parent 5edef7e commit 96fc596

File tree

1 file changed

+2
-2
lines changed
  • HibernateSpringBootCalculatePropertyGenerated

1 file changed

+2
-2
lines changed

HibernateSpringBootCalculatePropertyGenerated/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
**Calculate at `INSERT` time:**
88
- 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)`
1010

1111
**Calculate at `INSERT` and `UPDATE` time:**
1212
- annotate the corresponding persistent field with `@Generated(value = GenerationTime.ALWAYS)`
@@ -15,7 +15,7 @@
1515
**Further, apply:**
1616

1717
**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
1919

2020
**Method 2:**
2121
- 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

Comments
 (0)