WARN AnnotationBinder:339 - Hibernate does not support SequenceGenerator.initialValue()
I am using Hibernate 3.2R2 and Annotations 3.2R2
The generated source looks like this
Code:
...
// Property accessors
@SequenceGenerator(name = "generator", sequenceName = "tabbtid_id_seq")
@Id
@GeneratedValue(strategy = SEQUENCE, generator = "generator")
@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true)
public Integer getId() {
return this.id;
}
...
I have another not related question:
I want to be able to switch between using/not using dynamic inserts at runtime, and I wonder how I can do it?
I noticed a class org.hibernate.mapping.PersistentClass that has a method setDynamicInsert(boolean dynamicInsert) which is just about what I want, but I can't seem to find any way to use it...
The reason for wanting to do this at runtime is that in some instances I want to be able to set columns to null and in some cases I want to only update certain columns...
Thanks in advance for any help :)