Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 211 for getSession (0.15 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java

            // We can do this by calling isChildOfRootNode on the current node.
            if ((artifact.getVersion() != null)
                    && (!node.isChildOfRootNode() || node.getArtifact().getVersion() == null)) {
                fireEvent(ResolutionListener.MANAGE_ARTIFACT_VERSION, listeners, node, artifact);
                node.getArtifact().setVersion(artifact.getVersion());
            }
    
            if ((artifact.getScope() != null)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  2. docs_src/sql_databases/tutorial001.py

    def create_db_and_tables():
        SQLModel.metadata.create_all(engine)
    
    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: Session = Depends(get_session)) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. docs_src/sql_databases/tutorial001_py310.py

    def create_db_and_tables():
        SQLModel.metadata.create_all(engine)
    
    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/")
    def create_hero(hero: Hero, session: Session = Depends(get_session)) -> Hero:
        session.add(hero)
        session.commit()
        session.refresh(hero)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/helper/PluginHelperTest.java

            assertEquals("fess-crawler-smbj", list.get(0).getName());
            assertEquals("14.14.0", list.get(0).getVersion());
            assertEquals("plugin/repo3/fess-crawler-smbj/14.14.0/fess-crawler-smbj-14.14.0.jar", list.get(0).getUrl());
            assertEquals("fess-crawler-smbj", list.get(1).getName());
            assertEquals("14.15.0", list.get(1).getVersion());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jun 17 12:38:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultVersionResolverTest.java

            requestB.setArtifact(artifactB);
    
            VersionResult resultB = versionResolver.resolveVersion(session, requestB);
            assertEquals("07.20.3-20120809.112920-97", resultB.getVersion());
    
            VersionRequest requestA = new VersionRequest();
            requestA.addRepository(newTestRepository());
    
            Artifact artifactA =
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

                    if (equals(existing.getVersion(), dependency.getVersion())) {
                        msg = "duplicate declaration of version " + Objects.toString(dependency.getVersion(), "(?)");
                    } else {
                        msg = "version " + Objects.toString(existing.getVersion(), "(?)") + " vs "
                                + Objects.toString(dependency.getVersion(), "(?)");
                    }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/BuildModelSourceTransformer.java

                if (dep.getVersion() == null) {
                    Model depModel =
                            context.getRawModel(model.getDelegate().getPomFile(), dep.getGroupId(), dep.getArtifactId());
                    if (depModel != null) {
                        String v = depModel.getVersion();
                        if (v == null && depModel.getParent() != null) {
                            v = depModel.getParent().getVersion();
                        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelResolver.java

                                    parent.getVersion()),
                            parent.getGroupId(),
                            parent.getArtifactId(),
                            parent.getVersion());
                }
    
                String newVersion = versionRangeResult.getHighestVersion().toString();
                if (!parent.getVersion().equals(newVersion)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. docs_src/sql_databases/tutorial002_py310.py

        SQLModel.metadata.create_all(engine)
    
    
    def get_session():
        with Session(engine) as session:
            yield session
    
    
    app = FastAPI()
    
    
    @app.on_event("startup")
    def on_startup():
        create_db_and_tables()
    
    
    @app.post("/heroes/", response_model=HeroPublic)
    def create_hero(hero: HeroCreate, session: Session = Depends(get_session)):
        db_hero = Hero.model_validate(hero)
        session.add(db_hero)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Oct 09 19:44:42 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

                        resolve(result, infos, RELEASE);
                    }
    
                    if (result.getVersion() != null && result.getVersion().endsWith(SNAPSHOT)) {
                        VersionRequest subRequest = new VersionRequest();
                        subRequest.setArtifact(artifact.setVersion(result.getVersion()));
                        if (result.getRepository() instanceof RemoteRepository) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top