* Copyright 2008, Unitils.org
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
SessionFactoryon a test class. Such a
SessionFactorywill connect to the unitils configured test datasource.
This annotation can be used at class, method or field level. If at field level, the
associated with this test object is injected. If put on a method with a single argument of type
the method is invoked with the
SessionFactory as argument.
This annotation can also be used to identify a custom configuration method. Such a method takes as single parameter a
org.hibernate.cfg.Configuration object, on which any specified configuration files were