Hibernate select null value

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.

478 total views, 2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *