Hibernate version: 3.2
Name and version of the database you are using: postgres 8.1.4
Hi,
I'm trying to set up a sequence in postgreSQL like this:
Code:
@Id
@GeneratedValue(generator="entityGen")
@GenericGenerator(name="entityGen", strategy="sequence",
parameters= {
@Parameter(name="min_value", value="100")
}
)
public Integer getId() {
return id;
}
The problem is that the min_value stays at 1 in the database table (and do not change to 100). (I've also tried to use @SequenceGenerator and set initialValue to 100, but hibernate does not seem to support the initialValue for @SequenceGenerator..)
Anyone knows how I can changed min_value, or other attributes in the sequence table in Postgres, using annotations?
- Olav