Mercurial > hg > LGServices
comparison src/main/java/de/mpiwg/gazetteer/bo/DBEntry.java @ 55:95bf4ac726e6
Topic synchronization with extraction-interface. new tables in LGService database
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 16 Feb 2016 15:09:40 +0100 |
parents | 3e62083dbcbf |
children |
comparison
equal
deleted
inserted
replaced
54:a00efd5d9e77 | 55:95bf4ac726e6 |
---|---|
11 import javax.persistence.Inheritance; | 11 import javax.persistence.Inheritance; |
12 import javax.persistence.InheritanceType; | 12 import javax.persistence.InheritanceType; |
13 import javax.persistence.Temporal; | 13 import javax.persistence.Temporal; |
14 import javax.persistence.TemporalType; | 14 import javax.persistence.TemporalType; |
15 | 15 |
16 import org.hibernate.annotations.GenericGenerator; | |
17 | |
16 @Entity | 18 @Entity |
17 @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) | 19 @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) |
18 public abstract class DBEntry { | 20 public abstract class DBEntry { |
19 | 21 |
20 private static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy-HH:mm"); | 22 private static SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy-HH:mm"); |
21 | 23 |
22 public DBEntry(){} | 24 public DBEntry(){} |
23 | 25 |
24 @Id | 26 @Id |
25 @GeneratedValue(strategy = GenerationType.TABLE) | 27 @GeneratedValue(strategy = GenerationType.TABLE) |
26 @Column(name="id") | 28 @Column(name="id") |
27 protected Long id; | 29 protected Long id; |
28 | 30 |
29 @Temporal(TemporalType.TIMESTAMP) | 31 @Temporal(TemporalType.TIMESTAMP) |
30 @Column(name="creationDate") | 32 @Column(name="creationDate") |