DATAJDBC-266 - Entities referenced by 1:1 don't need an Id.
The id-property was used to determine if there is an instance at all, or if it was null.
For entities that don't have an id that purpose is now fulfilled by selecting the backreference and checking it against null.
See also: DATAJDBC-223.
pull/94/merge
Jens Schauder7 years agocommitted byGreg Turnquist
@ -118,21 +117,17 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@@ -118,21 +117,17 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@ -140,7 +135,12 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@@ -140,7 +135,12 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@ -155,6 +155,16 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@@ -155,6 +155,16 @@ public class EntityRowMapper<T> implements RowMapper<T> {
@ -3,3 +3,6 @@ CREATE TABLE MANUAL ( id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) P
@@ -3,3 +3,6 @@ CREATE TABLE MANUAL ( id BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) P