| As I can guess after https://hibernate.atlassian.net/browse/HHH-12436 one-to-one mappings don’t work when @OneToOne(mappedBy =””) didn’t provided. Most probably changing to {{@OneToOne(mappedBy = "fund", fetch = FetchType.LAZY, cascade = CascadeType.ALL) }} {{public FundMetadata getMetadata() { return metadata; }}} will solve the problem. I’m not sure yet if it is a bug, or your provided mapping is incorrect. Anyway, from the doc you can see, that with {{@PrimaryKeyJoinColumn}}you have to manually set id for child entity. I guess this stfo answer explaines the @PrimaryKeyJoinColumn meaning and I guess this annotation is not needed in your example. Please answer if this helped and it will be appreciated if you give code project example like it was given in https://hibernate.atlassian.net/browse/HHH-13413 for example |