spring的jdbcTemplate 返回一个类




public HomeMember findUserById(int id) {
		homeMember = null;
		try {
			homeMember = (HomeMember) jdbcTemplate.queryForObject(
					"SELECT * FROM uchome_member WHERE uid = ?",
					new Object[] { id },
					com.qieast.platform.model.HomeMember.class);
		} catch (DataAccessException e) {
			e.printStackTrace(); 
		}
		entityManager.persist(homeMember);
		return homeMember;
	}





你可能感兴趣的:(java,spring)