Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 221 - 230 of 1,106 for Model2 (0.04 seconds)

  1. docs/pt/docs/tutorial/encoder.md

    Da mesma forma, este banco de dados não receberia um modelo Pydantic (um objeto com atributos), apenas um `dict`.
    
    Você pode usar a função `jsonable_encoder` para resolver isso.
    
    A função recebe um objeto, como um modelo Pydantic e retorna uma versão compatível com JSON:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    Neste exemplo, ele converteria o modelo Pydantic em um `dict`, e o `datetime` em um `str`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderResult.java

        /**
         * Gets the file model.
         *
         * @return the file model, never {@code null}.
         */
        @Nonnull
        Model getFileModel();
    
        /**
         * Gets the file model + build pom transformation, without inheritance nor interpolation.
         *
         * @return The raw model, never {@code null}.
         */
        @Nonnull
        Model getRawModel();
    
        /**
         * Gets the effective model of the parent POM.
         *
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Nov 18 17:20:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. compat/maven-model/src/main/java/org/apache/maven/model/io/xpp3/MavenXpp3Reader.java

        } // -- void setAddDefaultEntities( boolean )
    
        protected Model read(Reader reader, boolean strict, InputSource source) throws IOException, XmlPullParserException {
            try {
                org.apache.maven.api.model.Model model =
                        delegate.read(reader, strict, source != null ? source.toApiSource() : null);
                return new Model(model);
            } catch (XMLStreamException e) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 5.2K bytes
    - Click Count (0)
  4. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

        model: CIBuildModel,
        stage: Stage,
        os: Os? = null,
    ) = stageTriggerUuid(model, stage.stageName, os)
    
    fun stageTriggerId(
        model: CIBuildModel,
        stageName: StageName,
        os: Os? = null,
    ) = "${model.projectId}_Stage_${stageName.id}_${osSuffix(os)}Trigger"
    
    fun stageTriggerUuid(
        model: CIBuildModel,
        stageName: StageName,
        os: Os? = null,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 12:17:39 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileToRawModelMerger.java

    import org.apache.maven.api.model.ModelBase;
    import org.apache.maven.api.model.Plugin;
    import org.apache.maven.api.model.PluginContainer;
    import org.apache.maven.api.model.Profile;
    import org.apache.maven.api.model.ReportPlugin;
    import org.apache.maven.api.model.Reporting;
    import org.apache.maven.model.v4.MavenMerger;
    
    /**
     * As long as Maven controls the BuildPomXMLFilter, the entities that need merging are known.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Thu Aug 07 14:32:16 GMT 2025
    - 7.7K bytes
    - Click Count (0)
  6. tests/multi_primary_keys_test.go

    	DB.Model(&blog).Association("Tags").Delete(tag5)
    	var tags3 []Tag
    	DB.Model(&blog).Association("Tags").Find(&tags3)
    	if !compareTags(tags3, []string{"tag6"}) {
    		t.Fatalf("Should find 1 tags after Delete")
    	}
    
    	if DB.Model(&blog).Association("Tags").Count() != 1 {
    		t.Fatalf("Blog should has three tags after Delete")
    	}
    
    	DB.Model(&blog).Association("Tags").Delete(tag3)
    	var tags4 []Tag
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Result.java

     * <ol>
     * <li>success - in which case only the model field is set
     * <li>success with warnings - model field + non-error model problems
     * <li>error - no model, but diagnostics
     * <li>error - (partial) model and diagnostics
     * </ol>
     * Could encode these variants as subclasses, but kept in one for now
     *
     * @param <T> the model type
     * @deprecated use {@code org.apache.maven.api.services.ModelBuilder} instead
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 26 19:31:34 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  8. .teamcity/src/main/kotlin/model/CIBuildModel.kt

        },
        BuildLogicTest {
            override fun create(
                model: CIBuildModel,
                stage: Stage,
                flakyTestStrategy: FlakyTestStrategy,
            ): OsAwareBaseGradleBuildType = BuildLogicTest(model, stage)
        },
        BuildDistributions {
            override fun create(
                model: CIBuildModel,
                stage: Stage,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Nov 05 13:00:26 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/normalization/DefaultModelNormalizer.java

     */
    package org.apache.maven.model.normalization;
    
    import javax.inject.Named;
    import javax.inject.Singleton;
    
    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.LinkedHashMap;
    import java.util.List;
    import java.util.Map;
    
    import org.apache.maven.model.Build;
    import org.apache.maven.model.Dependency;
    import org.apache.maven.model.Model;
    import org.apache.maven.model.Plugin;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  10. docs/es/docs/tutorial/encoder.md

    De la misma manera, esta base de datos no recibiría un modelo de Pydantic (un objeto con atributos), solo un `dict`.
    
    Puedes usar `jsonable_encoder` para eso.
    
    Recibe un objeto, como un modelo de Pydantic, y devuelve una versión compatible con JSON:
    
    {* ../../docs_src/encoder/tutorial001_py310.py hl[4,21] *}
    
    En este ejemplo, convertiría el modelo de Pydantic a un `dict`, y el `datetime` a un `str`.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 16 16:33:45 GMT 2025
    - 1.8K bytes
    - Click Count (0)
Back to Top