HHH-12388 - User Guide and Javadoc typo fixes

Fix SQL for bidirectional OneToMany The documented SQL didn't match what the test actually produces.
This commit is contained in:
Roland Illig 2018-03-05 17:09:14 +01:00 committed by Vlad Mihalcea
parent 069222cf58
commit a17a8df9e3
1 changed files with 9 additions and 5 deletions

View File

@ -1,10 +1,14 @@
INSERT INTO Phone
( number, person_id, id )
VALUES ( '123-456-7890', NULL, 2 )
INSERT INTO Person
( id )
VALUES ( 1 )
INSERT INTO Phone
( number, person_id, id )
VALUES ( '321-654-0987', NULL, 3 )
( "number", person_id, id )
VALUES ( '123-456-7890', 1, 2 )
INSERT INTO Phone
( "number", person_id, id )
VALUES ( '321-654-0987', 1, 3 )
DELETE FROM Phone
WHERE id = 2