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
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,6 @@
6
6
- annotate the entity property that should be calculated with `@Generated(value = GenerationTime.ALWAYS)` or `@Generated(value = GenerationTime.INSERT)`\
7
7
- if the database schema is generated via JPA annotations then use `columnDefinition` element of `@Column`
8
8
9
-
**Note:** In production, you should not rely on this practice. You should set `hibernate.ddl-auto` to `none` or `validate`, and add the SQL query expression in `CREATE TABLE` (in this example, check `schema-sql.sql`). Nevertheless, not even `schema-sql.sql` is ok in production. The best way is to rely on Flyway or Liquibase).
9
+
**Note:** In production, you should not rely on this practice. You should set `hibernate.ddl-auto` to `none` or `validate`, and add the SQL query expression in `CREATE TABLE` (in this example, check `schema-sql.sql`). Nevertheless, not even `schema-sql.sql` is ok in production. The best way is to rely on Flyway or Liquibase.
0 commit comments