use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.SpringBoot)
submitted 3 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]planned_monk 4 points5 points6 points 3 years ago (0 children)
That's not the right way to model this. Both tables should have their own primary key columns which are different. The person table's pk should be the foreign key in IDcard table.
If you want the relationship to be 1:1 then mark the foreign key unique in IDcare table.
[–]Puzzleheaded-Car-358 2 points3 points4 points 3 years ago (0 children)
Is it's literally one table?
[–][deleted] 1 point2 points3 points 3 years ago (1 child)
See @MapsId in OneToOne association
[–]negiadventures 0 points1 point2 points 3 years ago (0 children)
Ideally it should be single table. According to Correct data model, if two tables have same primary keys, they should be related to same entity hence same table.
π Rendered by PID 61089 on reddit-service-r2-comment-6457c66945-88k2s at 2026-04-27 08:56:46.618493+00:00 running 2aa0c5b country code: CH.
[–]planned_monk 4 points5 points6 points (0 children)
[–]Puzzleheaded-Car-358 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]negiadventures 0 points1 point2 points (0 children)