HHH-6813 @Id @OneToOne cause NullPointerException during query