1: …… 2: public void listHoney() { 3: Session session = new Configuration().configure().buildSessionFactory().openSession(); 4: try { 5: Properties props = new Properties(); 6: String fileName = "Hibernate.properties"; 7: FileInputStream in = new FileInputStream(fileName); 8: props.load(in); 9: …… 10: // 외부로부터 입력을 받음 11: String idValue = props.getProperty(" idLow" ); 12: // 외부 입력을 검증없이 SQL qeuery문의 인자로 사용한다. 13: Query query = session.createQuery("from Address a where a.name='" + idValue); 14: query.list(); 15: } catch (IOException e) { …… } 16: ……