Skip to content

Conversation

@wiverson
Copy link
Contributor

No description provided.

Major updates:
- Upgraded JDK from 1.8 to 21 (latest LTS)
- Updated MyBatis from 3.3.0 to 3.5.19
- Migrated from JUnit 4.12 to JUnit 5 (Jupiter) 5.11.4
- Replaced Log4j 1.2.17 with Log4j 2.24.0 (security fix)
- Updated H2 database from 1.4.189 to 2.3.232
- Updated all Maven plugins to latest versions
- Converted test code to use JUnit 5 annotations and assertions
- Migrated log4j.xml to log4j2.xml with Log4j 2 configuration format
- Updated README.md with new requirements

This update addresses security vulnerabilities (Log4Shell) and brings
the project up to current standards with modern dependency versions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Major changes:
- Replaced H2 database with PostgreSQL JDBC driver 42.7.7
- Added Testcontainers 2.0.1 for automated PostgreSQL test containers
- Updated SQL syntax from H2 (auto_increment) to PostgreSQL (bigserial)
- Modified test setup to use Testcontainers for automatic DB lifecycle
- Added docker-compose.yml for optional manual PostgreSQL setup
- Updated Configuration.xml to use PostgreSQL connection settings
- Tests now automatically spin up PostgreSQL in Docker, no manual setup needed

This provides a more production-like database for testing while
maintaining zero-configuration testing through Testcontainers.

Requires Docker to be running for tests to execute.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Changed from 2.0.1 to 1.20.1 (stable version from July 2024).
Version 2.0+ introduced breaking changes with renamed artifacts
(testcontainers-postgresql instead of postgresql), while 1.20.1
uses the traditional artifact naming and is widely adopted.

This fixes the Maven dependency resolution errors.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Changed from config.getSettings().setUseGeneratedKeys(true) to
config.setUseGeneratedKeys(true) to match MyBatis 3.5.19 API.

The Configuration class doesn't have a getSettings() method;
configuration properties are set directly on the Configuration object.

Fixes compilation error at AppTest.java:44

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants