public void postFlush(Iterator entities) { for (Iterator it = getInserts().iterator(); it.hasNext(); ) { TBlueprint elem = (TBlueprint) it.next(); InspectInterceptor.AddLog( getAccountName(), "ÉóºË", elem.getIdBlueprint(), "AAA", getSession().connection()); } inserts.clear(); }
public static void main(String[] args) { TBlueprint tblueprint = new TBlueprint(); tblueprint.setSnBlueprint("AAAAAAAAA"); InspectInterceptor interceptor = new InspectInterceptor("usky"); CurrentUser cu = new CurrentUser(); cu.setAccountName("usky"); // HibernateSessionFactory.rebuildSessionFactory(); DBUtil.save(tblueprint, interceptor); }