Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 1,613 for Person (0.05 seconds)

  1. tests/scan_test.go

    func TestScanToEmbedded(t *testing.T) {
    	person1 := Person{Name: "person 1"}
    	person2 := Person{Name: "person 2"}
    	DB.Save(&person1).Save(&person2)
    
    	address1 := Address{Name: "address 1"}
    	address2 := Address{Name: "address 2"}
    	DB.Save(&address1).Save(&address2)
    
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address1.ID)})
    	DB.Create(&PersonAddress{PersonID: person1.ID, AddressID: int(address2.ID)})
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Wed Jun 12 10:57:36 GMT 2024
    - 10.9K bytes
    - Click Count (0)
  2. docs/en/docs/python-types.md

    ### Classes as types { #classes-as-types }
    
    You can also declare a class as the type of a variable.
    
    Let's say you have a class `Person`, with a name:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[1:3] *}
    
    Then you can declare a variable to be of type `Person`:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[6] *}
    
    And then, again, you get all the editor support:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  3. schema/relationship_test.go

    func TestMultipleMany2Many(t *testing.T) {
    	type Thing struct {
    		ID int
    	}
    
    	type Person struct {
    		ID       int
    		Likes    []Thing `gorm:"many2many:likes"`
    		Dislikes []Thing `gorm:"many2many:dislikes"`
    	}
    
    	checkStructRelation(t, &Person{},
    		Relation{
    			Name: "Likes", Type: schema.Many2Many, Schema: "Person", FieldSchema: "Thing",
    			JoinTable: JoinTable{Name: "likes", Table: "likes"},
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Aug 18 11:44:52 GMT 2025
    - 26.5K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/python-types.md

    你也可以用類別來宣告變數的型別。
    
    假設你有一個 `Person` 類別,帶有名稱:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[1:3] *}
    
    接著你可以宣告一個變數為 `Person` 型別:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[6] *}
    
    然後,你一樣會得到完整的編輯器支援:
    
    <img src="/img/python-types/image06.png">
    
    請注意,這表示「`one_person` 是類別 `Person` 的『實例(instance)』」。
    
    並不是「`one_person` 就是名為 `Person` 的『類別(class)』」。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  5. docs/zh/docs/python-types.md

    你也可以把类声明为变量的类型。
    
    假设你有一个名为 `Person` 的类,带有 name:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[1:3] *}
    
    然后你可以声明一个变量是 `Person` 类型:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[6] *}
    
    接着,你会再次获得所有的编辑器支持:
    
    <img src="/img/python-types/image06.png">
    
    注意,这表示“`one_person` 是类 `Person` 的一个实例(instance)”。
    
    它并不表示“`one_person` 是名为 `Person` 的类本身(class)”。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  6. docs/de/llm-prompt.md

    ```
    
    - Do not modify the hyphens in the content in headers inside of curly braces, which you shall not translate.
    
    ### German instructions, when to use and when not to use hyphens in words (written in first person, which is you).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Dec 29 18:54:20 GMT 2025
    - 9.8K bytes
    - Click Count (0)
  7. docs/ja/docs/python-types.md

    変数の型としてクラスを宣言することもできます。
    
    名前を持つ `Person` クラスがあるとしましょう:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[1:3] *}
    
    変数を `Person` 型として宣言できます:
    
    {* ../../docs_src/python_types/tutorial010_py310.py hl[6] *}
    
    そして、再び、すべてのエディタのサポートを得ることができます:
    
    <img src="/img/python-types/image06.png">
    
    これは「`one_person` はクラス `Person` の **インスタンス** である」ことを意味します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/LicenseAnalyzer.java

                        + "this software and associated documentation files \\(the \"Software\"\\), to deal in the Software without "
                        + "restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, "
                        + "and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.\n"
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 27 00:12:58 GMT 2021
    - 12.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/reflect/Invokable.java

      }
    
      /**
       * Explicitly specifies the return type of this {@code Invokable}. For example:
       *
       * {@snippet :
       * Method factoryMethod = Person.class.getMethod("create");
       * Invokable<?, Person> factory = Invokable.of(getNameMethod).returning(Person.class);
       * }
       */
      public final <R1 extends R> Invokable<T, R1> returning(Class<R1> returnType) {
        return returning(TypeToken.of(returnType));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  10. docs/en/docs/help-fastapi.md

    ---
    
    Here's how to help others with questions (in discussions or issues):
    
    ### Understand the question { #understand-the-question }
    
    * Check if you can understand what is the **purpose** and use case of the person asking.
    
    * Then check if the question (the vast majority are questions) is **clear**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 12.6K bytes
    - Click Count (0)
Back to Top