| Having two entities A and B, A being a parent. B PK is mirroring A PK (child PK is also FK). When I use @MapsId annotation on B entity, feature works as expected. When I add entity that extends my child B (with strategy=JOINED), NoSuchElementException is thrown during entity manager factory build. Test reproducing issue is here. Other inheritance strategies works. |