how to store list of values in database ,with a primarykey autoincrement my dao have this primary key
@Id
@GeneratedValue(generator = "increment")
@Column(name = "ParamKey")
public long getParamKey() {
return paramKey;
}
public void setParamKey(long paramKey) {
this.paramKey = paramKey;
}
it is inserting for one row and it is showing the exception
java.lang.RuntimeException: a different object with the same identifier value was already associated with the session: