1. Check null for result returned by get, because if the object specified by identifier id is not exist in db, null will be returned 2. Check the list returned by hibernate, 2.1 check whether the list is null (by default, hibernate returns a list with 0 item, not null) 2.2 check whether the list size is larger than 0
Summary on 20080703: Attention for hibernate operation
最新推荐文章于 2019-04-17 15:11:54 发布