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

io.hyperfoil.tools.horreum.entity.data.OwnedEntityBase Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.hyperfoil.tools.horreum.entity.data;

import jakarta.persistence.Column;
import jakarta.persistence.MappedSuperclass;
import jakarta.validation.constraints.NotNull;

import org.hibernate.annotations.JdbcTypeCode;
import org.hibernate.type.SqlTypes;

import io.hyperfoil.tools.horreum.api.data.Access;
import io.quarkus.hibernate.orm.panache.PanacheEntityBase;

@MappedSuperclass
public class OwnedEntityBase extends PanacheEntityBase {

    @NotNull
    public String owner;

    @NotNull
    @Column(columnDefinition = "INTEGER")
    @JdbcTypeCode(SqlTypes.INTEGER)
    public Access access = Access.PUBLIC;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy