Search in sources :

Example 1 with MamuteDatabaseConfiguration

use of org.mamute.providers.MamuteDatabaseConfiguration in project mamute by caelum.

the class SchemaUpdateGenerator method main.

public static void main(String[] args) throws IOException {
    MamuteDatabaseConfiguration mamuteConfiguration = new MamuteDatabaseConfiguration(new DefaultEnvironment(DEVELOPMENT), null, null);
    mamuteConfiguration.init();
    mamuteConfiguration.getSchemaUpdate().execute(true, false);
}
Also used : DefaultEnvironment(br.com.caelum.vraptor.environment.DefaultEnvironment) MamuteDatabaseConfiguration(org.mamute.providers.MamuteDatabaseConfiguration)

Example 2 with MamuteDatabaseConfiguration

use of org.mamute.providers.MamuteDatabaseConfiguration in project mamute by caelum.

the class ForgotPasswordTest method setup.

@BeforeClass
public static void setup() throws IOException {
    SessionFactoryCreator sessionFactoryCreator = new SessionFactoryCreator(new MamuteDatabaseConfiguration(env, null, null));
    sessionFactoryCreator.init();
    SessionFactory sf = sessionFactoryCreator.getInstance();
    SESSION = sf.openSession();
}
Also used : SessionFactory(org.hibernate.SessionFactory) MamuteDatabaseConfiguration(org.mamute.providers.MamuteDatabaseConfiguration) SessionFactoryCreator(org.mamute.providers.SessionFactoryCreator) BeforeClass(org.junit.BeforeClass)

Aggregations

MamuteDatabaseConfiguration (org.mamute.providers.MamuteDatabaseConfiguration)2 DefaultEnvironment (br.com.caelum.vraptor.environment.DefaultEnvironment)1 SessionFactory (org.hibernate.SessionFactory)1 BeforeClass (org.junit.BeforeClass)1 SessionFactoryCreator (org.mamute.providers.SessionFactoryCreator)1