Closed rajadilipkolli closed 4 months ago
The recent changes primarily focus on modifying the Hibernate DDL auto setting in the application properties, updating test configurations, and refining schema validation tests. The Hibernate DDL auto setting was changed from "validate" to "none," indicating a shift in how schema generation is handled. Additionally, the test configuration now imports a pre-defined container setup for PostgreSQL, streamlining the testing process.
File Path | Change Summary |
---|---|
src/main/resources/application.properties |
Changed spring.jpa.hibernate.ddl-auto setting from validate to none . |
src/test/java/com/booking/superride/SchemaValidationTest.java |
Contains a test class that validates JPA mappings with the database schema. |
src/test/java/com/booking/superride/TestSuperRideApplication.java |
Removed postgresContainer() method and imported ContainersConfig using @Import . |
src/test/java/com/booking/superride/common/ContainersConfig.java |
Provides a test configuration for setting up a PostgreSQL container using TestContainers. |
In the code where changes bloom, Hibernate's schema finds new room. From "validate" to "none," it flows, In testing fields, the container grows. With settings tweaked and tests refined, A smoother ride, our app will find. 🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit