Here in the vastness of the Internet dug up the following that the default values ​​of this attribute are as follows

From the JPA 2.0 spec, the defaults are like so: OneToMany: LAZY ManyToOne: EAGER ManyToMany: LAZY OneToOne: EAGER And in hibernate, all is Lazy 

That is, it is fair to assume that with a jpa + hibernate bundle, it is the settings of the hiber will be taken? It is also a Jpa implementation, so the jpa settings will be ignored?

    1 answer 1

    JPA is a specification. No settings specifically JPA, no bundles. JPA - man, Hibernate - Vasya. People have two arms, two legs. Is it fair for a bunch of people + Vasya to take the settings for Vasya? Since Hibernate is the JPA specification, and JPA has such defaults, then Hibernate will have these defaults.

    • Well, then I'm right, thank you. - alex safsafsd