KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > cache > NoCachingEnabledException


1 // $Id: NoCachingEnabledException.java,v 1.1 2005/04/15 18:19:32 steveebersole Exp $
2
package org.hibernate.cache;
3
4 import org.hibernate.cfg.Environment;
5
6 /**
7  * Implementation of NoCachingEnabledException.
8  *
9  * @author Steve Ebersole
10  */

11 public class NoCachingEnabledException extends CacheException {
12     private static final String JavaDoc MSG =
13             "Second-level cache is not enabled for usage [" +
14             Environment.USE_SECOND_LEVEL_CACHE +
15             " | " + Environment.USE_QUERY_CACHE + "]";
16
17     public NoCachingEnabledException() {
18         super( MSG );
19     }
20 }
21
Popular Tags