1 Reply Latest reply on Jan 16, 2009 11:49 AM by Tair Sabirgaliev

    specifying @Cache in XML

    Tair Sabirgaliev Newbie
      I have several JPA entity classes annotated with @Cache(usage=CacheConcurrencyStrategy.TRANSACTIONAL), everything is fine, but the project doesn't deploy without 2nd level cache configured on developer machine, that is @Cache annotation throws exception when there is no cache. Is there any convenient way of "disabling" @Cache depending on deployment, not using source file preprocessing? @Cache is not a JPA annotation, so I suppose I can't specify it in orm.xml or like that..

      I couldn't find any hints on how to specify additional hibernate.cfg.xml and *.hbm.xml on JPA entities, Is it possible?