Hibernate select null value

(Last Updated On: June 5, 2013)

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.

211 total views, 0 views today

Leave a Reply

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