- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for UserID (0.09 sec)
-
schema/relationship_test.go
type Profile struct { gorm.Model Name string UserID uint } type User struct { gorm.Model Refer string Profile Profile `gorm:"ForeignKey:UserID;References:Refer"` } checkStructRelation(t, &User{}, Relation{ Name: "Profile", Type: schema.HasOne, Schema: "User", FieldSchema: "Profile", References: []Reference{{"Refer", "User", "UserID", "Profile", "", true}}, }) }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Aug 18 11:44:52 UTC 2025 - 26.5K bytes - Viewed (0) -
tests/joins_test.go
Joins("LEFT OUTER JOIN pets ON pets.user_id = users.id").Find(&results) if len(results) == 0 { t.Fatalf("no record find") } else if results[0].Pet.UserID == nil || *(results[0].Pet.UserID) != user.ID { t.Fatalf("wrong user id in pet") } else if results[0].Pet.Name != user.Pets[0].Name { t.Fatalf("wrong pet name") } } func TestJoinArgsWithDB(t *testing.T) {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 15K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/StringUtil.java
* Note: If the first two characters are uppercase, the string will not be decapitalized. * <p> * Usage example: * </p> * * <pre> * StringUtil.decapitalize("UserId") = "userId" * StringUtil.decapitalize("ABC") = "ABC" * </pre> * * @param name * the string to decapitalize * @return the decapitalized string */Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 21.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
.addValue(15.0f); } }; void addEntries(MoreObjects.ToStringHelper helper) {} } @Param Dataset dataset; private static final String SHORT_NAME = "userId"; private static final String LONG_NAME = "fluxCapacitorFailureRate95Percentile"; private MoreObjects.ToStringHelper newHelper() { MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper("klass");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.4K bytes - Viewed (0) -
tests/update_has_one_test.go
} var pet4 Pet DB.Preload("Toy").Find(&pet4, "id = ?", pet.ID) CheckPet(t, pet4, pet) }) t.Run("Restriction", func(t *testing.T) { type CustomizeAccount struct { gorm.Model UserID sql.NullInt64 Number string `gorm:"<-:create"` Number2 string } type CustomizeUser struct { gorm.Model Name string Account CustomizeAccount `gorm:"foreignkey:UserID"` }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
tests/scanner_valuer_test.go
Allergen NullString Password EncryptedData Bytes []byte Num Num Strings StringsSlice Structs StructsSlice Role Role UserID *sql.NullInt64 User User EmptyTime EmptyTime ExampleStruct ExampleStruct ExampleStructPtr *ExampleStruct } type EncryptedData []byte
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Jun 07 07:02:07 UTC 2023 - 10.6K bytes - Viewed (0) -
tests/create_test.go
} func TestCreateWithNoGORMPrimaryKey(t *testing.T) { type JoinTable struct { UserID uint FriendID uint } DB.Migrator().DropTable(&JoinTable{}) if err := DB.AutoMigrate(&JoinTable{}); err != nil { t.Errorf("no error should happen when auto migrate, but got %v", err) } jt := JoinTable{UserID: 1, FriendID: 2} err := DB.Create(&jt).Error if err != nil {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 09:55:20 UTC 2025 - 26.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MultimapBuilder.java
/** * An immutable builder for {@link Multimap} instances, letting you independently select the desired * behaviors (for example, ordering) of the backing map and value-collections. Example: * * {@snippet : * ListMultimap<UserId, ErrorResponse> errorsByUser = * MultimapBuilder.linkedHashKeys().arrayListValues().build(); * SortedSetMultimap<String, Method> methodsForName = * MultimapBuilder.treeKeys().treeSetValues(this::compareMethods).build();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 18K bytes - Viewed (0) -
tests/update_test.go
ID int Name string Token Token `gorm:"foreignKey:UserID"` } func (t *TokenOwner) BeforeSave(tx *gorm.DB) error { t.Name += "_name" return nil } type Token struct { UserID int `gorm:"primary_key"` Content string `gorm:"type:varchar(100)"` } func (t *Token) BeforeSave(tx *gorm.DB) error { t.Content += "_encrypted" return nil }
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Mon Jul 21 02:46:58 UTC 2025 - 30.4K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.10.md
When we convert the OpenStack cloud provider to run in an external process, we can now use the kubernetes Secrets capability to inject the OS_* variables. This way we can specify the cloud configuration as a configmap, and specify secrets for the userid/password information. The configmap is mounted as a file, and the secrets are made available as environment variables. The external controller itself runs as a pod/daemonset. For backward compatibility, we preload all the OS_* variables, and if anything...
Registered: Fri Dec 26 09:05:12 UTC 2025 - Last Modified: Thu May 05 13:44:43 UTC 2022 - 341.8K bytes - Viewed (0)