Hi,
i habe a indexed many-to-many relation which is mapped as follows:
Code:
One side:
@OneToMany
@Cascade(value = { CascadeType.ALL })
@JoinColumn(name = "fksyscontainers")
@OrderColumn(name = "objectorder")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
private List<Objects> objects;
The other side:
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "fksyscontainers", insertable = false, updatable = false)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
private Container container;
Without using the 2nd level cache everything is fine. But with the 2nd level cache the objectorder in the cache is always NULL.
The problem occurs only in the cache... in the database the order value is correct.
Does anybody know how to fix this? Hibernate bug?
Thanks a lot!
Yours
Werzi2001