I have a few JPA entities, Container and Thing. Container has a Thing field.
Asking for /container/123 will return the object container with id 123, and two links: _self = localhost/container/123 and thing = localhost/container/123/thing
However, when clicking on localhost/container/123/thing, the _self link for that thing will always be localhost/thing/0, which is wrong (the id should be something like 456, but it's always 0)
Am I doing something wrong, or is this just a bug in Spring Data / REST / HATEOAS?