-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate cache and indexed lists
PostPosted: Mon Jul 26, 2010 9:16 am 
Beginner
Beginner

Joined: Sun Apr 25, 2010 7:14 am
Posts: 30
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.