diff options
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/terminaldweller/doc/Doc.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/terminaldweller/doc/Doc.java b/src/main/java/com/terminaldweller/doc/Doc.java index c746692..1ec9dca 100644 --- a/src/main/java/com/terminaldweller/doc/Doc.java +++ b/src/main/java/com/terminaldweller/doc/Doc.java @@ -1,8 +1,21 @@ package com.terminaldweller.doc; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import javax.persistence.SequenceGenerator; +import javax.persistence.Table; + /** The document class. */ +@Entity +@Table public class Doc { + @Id + @SequenceGenerator(name = "doc_sequence", sequenceName = "doc_sequence", allocationSize = 1) + @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "doc_sequence") private Long id; + private String name; private long lastModified; |