This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class Parent { | |
@Id | |
private Long id; | |
@OneToOne(fetch = FetchType.LAZY) | |
@NotFound(action=NotFoundAction.IGNORE) // You don't need this annotation if you use the approach below | |
private Son son; | |