add missing fields and recreate sequence (#291)

This commit is contained in:
Athou
2013-06-13 09:48:40 +02:00
parent fad0f7a9fd
commit 4e412c150c
2 changed files with 164 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ public abstract class AbstractModel implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator = "gen")
@TableGenerator(name = "gen", allocationSize = 1000)
@TableGenerator(name = "gen", table = "hibernate_sequences", pkColumnName = "sequence_name", valueColumnName = "sequence_next_hi_value", allocationSize = 1000)
private Long id;
public Long getId() {