Hibernate select null value

Hibernate select Null Value:

@OneToOne
@JoinColumn(name=”documentSearchCriteriaId”, referencedColumnName=”documentSysId”, nullable=true)
(or)
@OneToOne(fetch=FetchType.LAZY)
(or)
@OneToOne(fetch=FetchType.EAGER)

but if null value encountered then it will simply exit without throwing error, it will not continue executing with next row values.

If you have any other solution kindly post in the comment area. Thanks.

Leave a Reply