| Given enhanced entity (enableLazyInitialization=true, everything else=false):
@Entity
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class NoCacheConcurrencyStrategyEntity {
@Id
@GeneratedValue
public int id;
}
When this entity is saved with enabled second level cache, the following exception is raised:
Using a difference CacheConcurrencyStrategy works fine. |