Hibernate: one-to-one lazy loading, optional = false
I faced the problem that one-to-one lazy loading doesn't work in hibernate. I've already solved it , but still don't properly understand what happens. My code ( lazy loading doesn't work here , when I pull Person - Address is also fetched): @Entity public class Person{ @Id @SequenceGenerator(name = "person_sequence", sequenceName = "sq_person") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "person_sequence") @Column(name = "id") private long personID; @OneToOne(mappedBy="person", cascade=CascadeType.ALL, fetch = FetchType.LAZY) private Adress address; //.. getters, setters }