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

io.rocketbase.commons.model.AssetFileEntity Maven / Gradle / Ivy

package io.rocketbase.commons.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import javax.validation.constraints.NotNull;


@Entity
@Table(name = "co_asset_file")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AssetFileEntity {

    /**
     * longer to keep different preview sizes
     */
    @Id
    @Column(name = "id", length = 39)
    private String id;

    @Lob
    @NotNull
    @Column(name = "file_binary", nullable = false)
    private byte[] binary;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy