Hello, I'm Java beginner. I'm trying to use JPA with Hibernate and I've got an issue that I don't understand. It seems to me I found a bug, but maybe I'm doing something wrong.For example I have two entities with OneToOne relation and EntityGraph to minimize queries count.

/** * (Optional) The lock mode type to use in query execution. If a <code>lockMode</code> * other than <code>LockModeType.NONE</code> is specified, the query must be executed in * a transaction. * @since Java Persistence 2.0 */ LockModeType lockMode() default NONE;