コード例 #1
0
 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();
 }
コード例 #2
0
  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);
  }