Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for embedded_tag (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/embedded_struct_test.go

    	}
    	type Tag2 struct {
    		Id int64
    	}
    
    	type EmbeddedTag struct {
    		Tag1 Tag1 `gorm:"Embedded;"`
    		Tag2 Tag2 `gorm:"Embedded;EmbeddedPrefix:t2_"`
    		Name string
    	}
    
    	DB.Migrator().DropTable(&EmbeddedTag{})
    	err := DB.Migrator().AutoMigrate(&EmbeddedTag{})
    	AssertEqual(t, err, nil)
    
    	t1 := EmbeddedTag{Name: "embedded_tag"}
    	err = DB.Save(&t1).Error
    	AssertEqual(t, err, nil)
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Wed May 08 04:07:58 GMT 2024
    - 7.3K bytes
    - Click Count (0)
Back to Top