It depends on whether you are using JPA or Hibernate.
From the JPA 2.0 spec, the defaults are:
OneToMany: LAZY
ManyToOne: EAGER
ManyToMany: LAZY
OneToOne: EAGER
And in hibernate, all is Lazy
UPDATE:
The latest version of Hibernate aligns with the above JPA defaults.
More Related Contents:
- Mapping PostgreSQL JSON column to a Hibernate entity property
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- How to choose the id generation strategy when using JPA and Hibernate
- JPQL Create new Object In Select Statement – avoid or embrace?
- Spring Boot + JPA : Column name annotation ignored
- Hibernate, @SequenceGenerator and allocationSize
- What is the difference between Unidirectional and Bidirectional JPA and Hibernate associations?
- JPA/Hibernate Native Queries do not recognize Parameters
- What is the easiest way to ignore a JPA field during persistence?
- @PreUpdate and @Prepersist in hibernate/JPA (using session)
- Hibernate/JPA – annotating bean methods vs fields [duplicate]
- JPA how to make composite Foreign Key part of composite Primary Key
- Getting [SQLITE_BUSY] database file is locked with select statements
- Silently ignored remove()
- Hibernate/JPA DB Schema Generation Best Practices
- How to set a default query timeout with JPA and Hibernate?
- Change database schema during runtime based on logged in user
- Hibernate: “Field ‘id’ doesn’t have a default value”
- How to map sql native query result into DTO in spring jpa repository?
- Persisting UUID in PostgreSQL using JPA
- Batch inserts with JPA/EJB3
- Name attribute in @Entity and @Table
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- Why should anybody put annotations on the getters or setters when using JPA to map the classes?
- Hibernate using JPA (annotated Entities) and liquibase
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)
- Change Table Name of an Entity on runtime? [duplicate]
- JPA: Override Auto generated ID [duplicate]
- How to map one class to different tables using hibernate/jpa annotations
- TransactionRequiredException Executing an update/delete query