File tree Expand file tree Collapse file tree
src/main/java/ar/com/nanotaboada/java/samples/spring/boot/models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ The Docker container uses a "hold" pattern for the pre-seeded SQLite database:
243243
244244### SQLite Configuration Notes
245245
246- - ** Date storage** : Dates are stored as Unix timestamps (INTEGER) for robustness - no parsing issues
246+ - ** Date storage** : LocalDate fields are stored as Unix timestamps (INTEGER) for robustness - no parsing issues
247247- ** Converter** : ` UnixTimestampConverter ` handles LocalDate ↔ epoch seconds conversion via JPA ` @Convert `
248248- ** DDL auto** : Use ` ddl-auto=none ` since the database is pre-seeded (SQLite has limited ALTER TABLE support)
249249- ** Tests use H2** : The converter works seamlessly with both H2 and SQLite databases
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ open target/site/jacoco/index.html
205205** SQLite Configuration Notes:**
206206
207207- Dates are stored as Unix timestamps (INTEGER) for robustness - no date format parsing issues
208- - A JPA ` AttributeConverter ` handles LocalDate ↔ epoch seconds conversion transparently
208+ - A JPA ` AttributeConverter ` handles LocalDate ↔ epoch seconds conversion transparently (UTC-based)
209209- Use ` ddl-auto=none ` since the database is pre-seeded (SQLite has limited ALTER TABLE support)
210210- Tests use H2 in-memory database - the converter works seamlessly with both databases
211211
Original file line number Diff line number Diff line change 156156 <dependency >
157157 <groupId >org.xerial</groupId >
158158 <artifactId >sqlite-jdbc</artifactId >
159- <version >3.47.1 .0</version >
159+ <version >3.51.0 .0</version >
160160 <scope >runtime</scope >
161161 </dependency >
162162 <!-- Hibernate Community Dialects ==================================== -->
Original file line number Diff line number Diff line change @@ -12,8 +12,13 @@ if [ ! -f "$VOLUME_STORAGE_PATH" ]; then
1212 echo " ⚠️ No existing database file found in volume."
1313 if [ -f " $IMAGE_STORAGE_PATH " ]; then
1414 echo " Copying database file to writable volume..."
15- cp " $IMAGE_STORAGE_PATH " " $VOLUME_STORAGE_PATH "
16- echo " ✔ Database initialized at $VOLUME_STORAGE_PATH "
15+ if cp " $IMAGE_STORAGE_PATH " " $VOLUME_STORAGE_PATH " ; then
16+ echo " ✔ Database initialized at $VOLUME_STORAGE_PATH "
17+ else
18+ echo " ❌ Failed to copy database from $IMAGE_STORAGE_PATH to $VOLUME_STORAGE_PATH "
19+ echo " Check file permissions and available disk space."
20+ exit 1
21+ fi
1722 else
1823 echo " ⚠️ Database file missing at $IMAGE_STORAGE_PATH "
1924 exit 1
Original file line number Diff line number Diff line change 1212 * (seconds since epoch).
1313 *
1414 * This converter stores dates as INTEGER in SQLite, which is more robust than
15- * TEXT-based
16- * date formats because:
15+ * TEXT-based date formats because:
1716 * - No parsing ambiguity or locale-dependent formatting issues
1817 * - Works consistently across all SQLite clients and tools
1918 * - More efficient for date comparisons and indexing
You can’t perform that action at this time.
0 commit comments