Skip to content

Commit 7f3164b

Browse files
Calculate Entity Persistent Property
1 parent 9262f26 commit 7f3164b

File tree

1 file changed

+1
-1
lines changed
  • HibernateSpringBootCalculatePropertyGenerated

1 file changed

+1
-1
lines changed

HibernateSpringBootCalculatePropertyGenerated/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
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`
2222

23-
**Note:** In production, you should not rely on `columnDefinition`. You should disable `hibernate.ddl-auto` (by omitting it), and add the SQL query expression in `CREATE TABLE` (in this application, check the `discount` column in `CREATE TABLE`, file `schema-sql.sql`). Nevertheless, not even `schema-sql.sql` is ok in production. The best way is to rely on Flyway or Liquibase.
23+
**Note:** In production, you should not rely on `columnDefinition`. You should disable `hibernate.ddl-auto` (by omitting it) or set it to `validate`, and add the SQL query expression in `CREATE TABLE` (in this application, check the `discount` column in `CREATE TABLE`, file `schema-sql.sql`). Nevertheless, not even `schema-sql.sql` is ok in production. The best way is to rely on Flyway or Liquibase.
2424

2525
<a href="https://leanpub.com/java-persistence-performance-illustrated-guide"><p align="center"><img src="https://github.com/AnghelLeonard/Hibernate-SpringBoot/blob/master/Java%20Persistence%20Performance%20Illustrated%20Guide.jpg" height="410" width="350"/></p></a>

0 commit comments

Comments
 (0)