| @OneToOne without optional attribute defaults to optional=true: http://docs.oracle.com/javaee/6/api/javax/persistence/OneToOne.html#optional() so the original mapping is optional yet Hibernate throws an exception. The exception is suppressed by the fact that OP put @NotFound which is an incorrect behaviour in my opinion because @NotFound should not be used to indicate to Hibernate that this association is optional. |