google-nomulus/core
Shicong Huang f1dedbe21e Prevent test from changing golden schema (#337)
When we add the extra test entity to the current JpaTransactionManagerRule by calling jpaRule.withEntityClass(TestEntity.class) and jpaRule.withProperty(Environment.HBM2DDL_AUTO, "update"), the rule would override the golden database scheme with the schema derived from the current entity class(This is an expected behavior by enabling HBM2DDL_AUTO). This behavior prevents us from detecting breaking changes in ORM classes.

This PR fixed the issue by adding HibernateSchemaExporter to export the DDL script for given extra entity class, and make JpaTransactionManagerRule execute the DDL script to create the corresponding table for the extra entity when initializing the database. This PR also simplified the code when adding extra entity class for testing. For now, you don't need to(and shouldn't) call jpaRule.withProperty(Environment.HBM2DDL_AUTO, "update").
2019-11-05 11:36:03 -05:00
..
gradle/dependency-locks Upgrade org.apache.beam related packages to latest version (#333) 2019-10-30 11:44:26 -04:00
src Prevent test from changing golden schema (#337) 2019-11-05 11:36:03 -05:00
build.gradle Move soyutils_usegoog.js out of node_modules (#342) 2019-11-04 15:22:32 -05:00
Dockerfile Build docker image of nomulus tool (#142) 2019-07-16 20:18:44 -04:00
karma.conf.js Move soyutils_usegoog.js out of node_modules (#342) 2019-11-04 15:22:32 -05:00