Commit d8209ada authored by Matija Obreza's avatar Matija Obreza
Browse files

Use @Type uuid-binary for UUID

parent 1017818c
......@@ -40,6 +40,7 @@ import org.genesys.blocks.model.EntityId;
import org.genesys.blocks.model.InMemoryIdGenerator;
import org.genesys.filerepository.metadata.BaseMetadata;
import org.genesys.filerepository.service.BytesStorageService;
import org.hibernate.annotations.Type;
// TODO: Auto-generated Javadoc
/**
......@@ -64,7 +65,8 @@ public class RepositoryFile extends AuditedVersionedModelWithoutId implements En
private Long id = InMemoryIdGenerator.nextId();
/** The uuid. */
@Column(name = "uuid", unique = true, nullable = false, updatable = false, columnDefinition = "binary(16)")
@Column(name = "uuid", unique = true, nullable = false, updatable = false)
@Type(type = "uuid-binary")
private UUID uuid;
/** The path. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment