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); }