DATAJDBC-218 - The Column annotation affects the back reference too.

Also:
Added documentation for the new behavior.
Made the value of the column annotation optional by providing a default.

Original pull request: #83.
This commit is contained in:
Jens Schauder
2018-09-18 14:34:05 +02:00
parent 335a7cbe65
commit 08ee846e71
4 changed files with 12 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ public class BasicRelationalPersistentPropertyUnitTests {
.getRequiredPersistentEntity(DummyEntity.class) //
.getRequiredPersistentProperty("someList");
assertThat(listProperty.getColumnName()).isEqualTo("dummy_column_name");
assertThat(listProperty.getReverseColumnName()).isEqualTo("dummy_column_name");
assertThat(listProperty.getKeyColumn()).isEqualTo("dummy_key_column_name");
}