|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface HibernateSessionFactory
Annotation that can be used for configuring a hibernate SessionFactory on a test class. Such a
SessionFactory will connect to the unitils configured test datasource.
SessionFactory
associated with this test object is injected. If put on a method with a single argument of type SessionFactory,
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
hibernate org.hibernate.cfg.Configuration object, on which any specified configuration files were
already loaded.
| Optional Element Summary | |
|---|---|
String[] |
value
Specifies zero, one or more configuration files, that will be used to configure the hibernate SessionFactory |
public abstract String[] value
SessionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||