What cache concurrency strategy should be used for @ManyToOne fields
Posted
by Samuel
on Stack Overflow
See other posts from Stack Overflow
or by Samuel
Published on 2010-06-17T04:34:06Z
Indexed on
2010/06/17
4:43 UTC
Read the original article
Hit count: 221
What cache concurrency strategy should be used for @ManyToOne fields for a particular entity class. Would it make sense to use READ_ONLY instead of READ_WRITE, since these fields usually don't change after entity creation
@ManyToOne(fetch = FetchType.LAZY)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
...
private User user;
© Stack Overflow or respective owner