Well, it depends what you want. But your MAP key should be corresponding with your Table PRIMARY KEY.
If you have a compound Primary Key, then your Map also must have a compound Key (not just an Integer) and you would likely need to build a Key Class implementing Comparable, Equals and Hash. Cheers Andreas On Sat, 2022-10-29 at 10:50 +0000, 'Mark Raynsford' via H2 Database wrote: > > > Imagine I had the following rows: > > (1, 1) // Group 1 contains member 1 > (1, 23) // Group 1 also contains member 23 > (1, 24) // Group 1 also contains member 24 > (2, 4) // Group 2 contains member 4 > (2, 5) // Group 2 contains member 5 -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/3b3a93f4cf6dc756c95928be661b7d2e1651437d.camel%40manticore-projects.com.