@SuppressWarnings("unchecked")
	@Override
	public List<DemoEO> searchDemoByVelo(String userName) {
		List<DemoEO> demoEOList = new ArrayList<DemoEO>();
		List<String> condition = new ArrayList<String>();
		StringBuffer hql = new StringBuffer("from com.castalia.apple.model.demo.entry.DemoEO where 1 = 1");
		if (userName != null && !"".equals(userName)) {
			hql.append(" and userName = ?");
			condition.add(userName);
		}
		demoEOList = (List<DemoEO>) hibernateTemplate.find(hql.toString(), condition.toArray());
		return demoEOList;
	}