---
title: "返回list集合   与   直接返回  单个实体的区别"
author: "clgoogle"
date: "2013-03-21T17:13:55Z"
tags: []
categories: ["编程语言"]
slug: "list"
draft: false
lastmod: "2013-05-18T13:12:36Z"
id: 1833599
url: "https://clgoogle.iteye.com/blog/1833599"
---

[![](http://time-earn.com/images/468.gif)](http://time-earn.com/?ref=clgoogle)

 

如果未查找到记录    list集合将会自动实例化   size为0

如果未查找到记录    单个实体则是null

 

[![](http://time-earn.com/images/728.gif)](http://time-earn.com/?ref=clgoogle)