📅  最后修改于: 2022-03-11 14:56:12.735000             🧑  作者: Mango
Query query = session.createSQLQuery("CALL StoredProcedureTest(:parameter1, :parameter2)")
.addEntity(DBModel.class)
.setParameter("parameter1", parameter1)
.setParameter("parameter2", parameter2);