spring-graphql ArtifactRepository 源码

  • 2022-08-16
  • 浏览 (558)

spring-graphql ArtifactRepository 代码

文件路径:/samples/webmvc-http/src/main/java/io/spring/sample/graphql/repository/ArtifactRepository.java

package io.spring.sample.graphql.repository;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class ArtifactRepository {

	@Id
	private String id;

	private String name;

	private String url;

	private boolean snapshotsEnabled;

	public ArtifactRepository(String id, String name, String url) {
		this.id = id;
		this.name = name;
		this.url = url;
	}

	public ArtifactRepository() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public boolean isSnapshotsEnabled() {
		return snapshotsEnabled;
	}

	public void setSnapshotsEnabled(boolean snapshotsEnabled) {
		this.snapshotsEnabled = snapshotsEnabled;
	}

}

相关信息

spring-graphql 源码目录

相关文章

spring-graphql ArtifactRepositories 源码

spring-graphql ArtifactRepositoriesInitializer 源码

spring-graphql package-info 源码

0  赞