You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
591 B
29 lines
591 B
package com.redhat.pctsec.model; |
|
|
|
import jakarta.persistence.Entity; |
|
import jakarta.persistence.GeneratedValue; |
|
import jakarta.persistence.GenerationType; |
|
import jakarta.persistence.Id; |
|
import org.eclipse.microprofile.openapi.annotations.media.Schema; |
|
|
|
import java.net.URI; |
|
import java.util.UUID; |
|
|
|
@Entity |
|
public class Git { |
|
public Git() { |
|
|
|
} |
|
|
|
@Id |
|
@GeneratedValue(strategy = GenerationType.AUTO) |
|
private UUID id; |
|
|
|
public URI repo; |
|
public String ref; |
|
|
|
public Git(String repo, String ref) { |
|
this.repo = URI.create(repo); |
|
this.ref = ref; |
|
} |
|
}
|
|
|