1。
1
2.
@Test
public void testlogin(){
Mumber member=new Mumber();
member.setId(1);
member.setUsername("hls");
member.setPassword("123");
session.save(member);
session.beginTransaction();
String hql = "FROM User WHERE username = ? AND password = ?";
List<Mumber> list = session.createQuery(hql)
.setString(0, "1")
.setString(1, "2")
.list();
}