io.convergence_platform.services.entities.DatabaseMigration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of service-lib Show documentation
Show all versions of service-lib Show documentation
Holds the common functionality needed by all Convergence Platform-based services written in Java.
The newest version!
package io.convergence_platform.services.entities;
import io.convergence_platform.common.database.IDatabaseMigrationEntry;
import jakarta.persistence.*;
import org.hibernate.annotations.GenericGenerator;
import java.sql.Timestamp;
import java.util.UUID;
@Entity
@Table(name = "database_migrations")
public class DatabaseMigration implements IDatabaseMigrationEntry {
@Id
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "org.hibernate.id.UUIDGenerator")
@Column(name = "uuid")
public UUID uuid;
public String migrationName;
public String command;
public Timestamp appliedTimestamp;
@Override
public String getMigrationName() {
return migrationName;
}
@Override
public String getCommand() {
return command;
}
@Override
public void setMigrationName(String name) {
migrationName = name;
}
@Override
public void setCommand(String command) {
this.command = command;
}
@Override
public void setAppliedTimestamp(Timestamp appliedTimestamp) {
this.appliedTimestamp = appliedTimestamp;
}
}