Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Relation (0.05 sec)

  1. schema/schema_helper_test.go

    func checkSchemaRelation(t *testing.T, s *schema.Schema, relation Relation) {
    	t.Run("CheckRelation/"+relation.Name, func(t *testing.T) {
    		if r, ok := s.Relationships.Relations[relation.Name]; ok {
    			if r.Name != relation.Name {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Name, relation.Name)
    			}
    
    			if r.Type != relation.Type {
    				t.Errorf("schema %v relation name expects %v, but got %v", s, r.Type, relation.Type)
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 28 02:57:17 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. schema/relationship.go

    	defer schema.Relationships.Mux.Unlock()
    
    	// set non-embedded relation
    	if rel := schema.Relationships.Relations[relation.Name]; rel != nil {
    		if len(rel.Field.BindNames) > 1 {
    			schema.Relationships.Relations[relation.Name] = relation
    		}
    	} else {
    		schema.Relationships.Relations[relation.Name] = relation
    	}
    
    	// set embedded relation
    	if len(relation.Field.EmbeddedBindNames) <= 1 {
    		return
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 23.1K bytes
    - Viewed (1)
  3. schema/relationship_test.go

    		"PostalAddress": {
    			Relations: map[string]Relation{
    				"Country": {
    					Name: "Country", Type: schema.BelongsTo, Schema: "Org", FieldSchema: "Country",
    					References: []Reference{
    						{PrimaryKey: "ID", PrimarySchema: "Country", ForeignKey: "CountryID", ForeignSchema: "Org"},
    					},
    				},
    			},
    		},
    		"VisitingAddress": {
    			Relations: map[string]Relation{
    				"Country": {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Aug 18 11:44:52 UTC 2025
    - 26.5K bytes
    - Viewed (0)
  4. generics.go

    						} else {
    							db.AddError(fmt.Errorf("relation %s not found", association))
    							return nil
    						}
    					}
    				} else {
    					db.AddError(fmt.Errorf("relation %s not found", association))
    					return nil
    				}
    			}
    
    			if q.limitPerRecord > 0 {
    				if relation.JoinTable != nil {
    					tx.AddError(fmt.Errorf("many2many relation %s don't support LimitPerRecord", association))
    					return tx
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Sep 04 13:13:16 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  5. gorm.go

    	err = stmt.Parse(joinTable)
    	if err != nil {
    		return err
    	}
    	joinSchema = stmt.Schema
    
    	relation, ok := modelSchema.Relationships.Relations[field]
    	isRelation := ok && relation.JoinTable != nil
    	if !isRelation {
    		return fmt.Errorf("failed to find relation: %s", field)
    	}
    
    	for _, ref := range relation.References {
    		f := joinSchema.LookUpField(ref.ForeignKey.DBName)
    		if f == nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Aug 26 06:24:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  6. schema/schema_test.go

    				},
    			}},
    			References: []Reference{{"ID", "User", "UserID", "user_friends", "", true}, {"ID", "User", "FriendID", "user_friends", "", false}},
    		},
    	}
    
    	for _, relation := range relations {
    		checkSchemaRelation(t, user, relation)
    	}
    }
    
    func TestParseSchemaWithAdvancedDataType(t *testing.T) {
    	user, err := schema.Parse(&AdvancedDataTypeUser{}, &sync.Map{}, schema.NamingStrategy{})
    	if err != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Thu Aug 28 02:57:17 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/rank/fusion/SearchResultTest.java

    package org.codelibs.fess.rank.fusion;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.apache.lucene.search.TotalHits.Relation;
    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.codelibs.fess.util.FacetResponse;
    import org.opensearch.search.aggregations.Aggregations;
    import org.opensearch.search.aggregations.InternalAggregations;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/entity/SearchRenderDataTest.java

            // Test with empty string
            searchRenderData.setAllRecordCountRelation("");
            assertEquals("", searchRenderData.getAllRecordCountRelation());
    
            // Test with relation types
            searchRenderData.setAllRecordCountRelation("eq");
            assertEquals("eq", searchRenderData.getAllRecordCountRelation());
    
            searchRenderData.setAllRecordCountRelation("gte");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  9. docs/site-replication/README.md

    - Creation and deletion of buckets and objects
    - Creation and deletion of all IAM users, groups, policies and their mappings to users or groups
    - Creation of STS credentials
    - Creation and deletion of service accounts (except those owned by the root user)
    - Changes to Bucket features such as:
      - Bucket Policies
      - Bucket Tags
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

                        throw e;
                    }
                }
            }
    
            // Verify deletion with fresh reference
            CIFSContext checkContext = createFreshContext();
            SmbFile checkFile = new SmbFile(baseUrl + "shared/" + filename, checkContext);
            assertFalse(checkFile.exists(), "File should not exist after deletion");
        }
    
        @Test
        void testFileRename() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
Back to top