Работа над разделением пакетов на стримы

This commit is contained in:
serega6531
2019-04-29 01:59:42 +03:00
parent 4ada121c9b
commit bbe4eaf56e
3 changed files with 83 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
package ru.serega6531.packmate.model;
import lombok.Builder;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
@@ -16,16 +17,23 @@ import javax.persistence.*;
@org.hibernate.annotations.Parameter(name = "increment_size", value = "1")
}
)
@Builder
public class Packet {
@Id
@GeneratedValue(generator = "packet_generator")
private Long id;
@Transient
private Long tempId;
@ManyToOne
@JoinColumn(name = "stream_id", nullable = false)
private Stream stream;
private long timestamp;
@Lob
private byte[] content;
}