Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 1,175 for sessions (0.1 sec)

  1. tests/hooks_test.go

    	}
    
    	DB.Model(&product).Session(&gorm.Session{SkipHooks: true}).Updates(Product3{Code: "L1216"})
    	if product.Price != 320 || product.Code != "L1216" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	var result2 Product3
    	DB.First(&result2, product.ID)
    
    	AssertEqual(t, result2, product)
    
    	product2 := Product3{Name: "Product", Price: 0}
    	DB.Session(&gorm.Session{SkipHooks: true}).Create(&product2)
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 17 03:59:06 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. callbacks/callmethod.go

    package callbacks
    
    import (
    	"reflect"
    
    	"gorm.io/gorm"
    )
    
    func callMethod(db *gorm.DB, fc func(value interface{}, tx *gorm.DB) bool) {
    	tx := db.Session(&gorm.Session{NewDB: true})
    	if called := fc(db.Statement.ReflectValue.Interface(), tx); !called {
    		switch db.Statement.ReflectValue.Kind() {
    		case reflect.Slice, reflect.Array:
    			db.Statement.CurDestIndex = 0
    			for i := 0; i < db.Statement.ReflectValue.Len(); i++ {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 846 bytes
    - Viewed (0)
  3. tests/associations_test.go

    	coupon := &Coupon{
    		AppliesToProduct: []*CouponProduct{
    			{ProductId: "full-save-association-product1"},
    		},
    		AmountOff:  10,
    		PercentOff: 0.0,
    	}
    
    	err := DB.
    		Session(&gorm.Session{FullSaveAssociations: true}).
    		Create(coupon).Error
    	if err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    	if DB.First(&Coupon{}, "id = ?", coupon.ID).Error != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/filter/impl/UrlFilterImpl.java

            cachedExcludeSet.clear();
            if (sessionId != null) {
                getUrlFilterService().delete(sessionId);
            }
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.filter.UrlFilter#init(java.lang.String)
         */
        @Override
        public void init(final String sessionId) {
            this.sessionId = sessionId;
            if (!cachedIncludeSet.isEmpty()) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  5. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/entity/OpenSearchUrlFilter.java

        public void setId(final String id) {
            this.id = id;
        }
    
        public String getSessionId() {
            return sessionId;
        }
    
        public void setSessionId(final String sessionId) {
            this.sessionId = sessionId;
        }
    
        public String getFilterType() {
            return filterType;
        }
    
        public void setFilterType(final String filterType) {
            this.filterType = filterType;
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/sso/aad/AzureAdAuthenticator.java

        }
    
        protected void storeStateInSession(final HttpSession session, final String state, final String nonce) {
            @SuppressWarnings("unchecked")
            Map<String, StateData> stateMap = (Map<String, StateData>) session.getAttribute(STATES);
            if (stateMap == null) {
                stateMap = new HashMap<>();
                session.setAttribute(STATES, stateMap);
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2.go

    		_, err = dst.unmarshalV(x.metaV, version.meta)
    		if err != nil {
    			return versions, err
    		}
    		fi, err := dst.ToFileInfo(volume, path, allParts)
    		if err != nil {
    			return versions, err
    		}
    		fi.NumVersions = len(x.versions)
    		versions = append(versions, fi)
    	}
    
    	for i := range versions {
    		versions[i].NumVersions = len(versions)
    		if i > 0 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/filter/impl/UrlFilterImplTest.java

            final String sessionId = "id1";
            urlFilter.init(sessionId);
            assertEquals(0, urlFilter.cachedIncludeSet.size());
            assertEquals(0, urlFilter.cachedExcludeSet.size());
            assertEquals(1, dataHelper.getIncludeUrlPatternList(sessionId).size());
            assertEquals(0, dataHelper.getExcludeUrlPatternList(sessionId).size());
        }
    
        public void test_addInclude2() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. cmd/mrf_gen.go

    			}
    		case "VersionID":
    			z.VersionID, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "VersionID")
    				return
    			}
    		case "Versions":
    			z.Versions, err = dc.ReadBytes(z.Versions)
    			if err != nil {
    				err = msgp.WrapError(err, "Versions")
    				return
    			}
    		case "SetIndex":
    			z.SetIndex, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "SetIndex")
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:26:05 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java

            assertEquals("<%= a", AdminDesignAction.decodeJsp("<%= a"));
            assertEquals("<% try{ %>", AdminDesignAction.decodeJsp("<!--TRY-->"));
            assertEquals("<% }catch(Exception e){session.invalidate();} %>",
                    AdminDesignAction.decodeJsp("<!--CACHE_AND_SESSION_INVALIDATE-->"));
            assertEquals("&lt;% a %&gt; %>", AdminDesignAction.decodeJsp("<% a %> %>"));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Jul 28 09:03:48 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top