All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.convergence_platform.services.entities.DatabaseMigration Maven / Gradle / Ivy

Go to download

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy