Skip to content

sleroy/spring-data-orient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-data-orient

Build Status

Coverage Status

Spring Data implementation for OrientDB

@Configuration
@EnableTransactionManagement
@EnableOrientRepositories(basePackages = "org.springframework.data.orient.object.person")
public class ApplicationConfiguration {

    @Bean
    public OrientObjectDatabaseFactory factory() {
        OrientObjectDatabaseFactory factory =  new OrientObjectDatabaseFactory();
        
        factory.setUrl("plocal:test/spring-data-test");
        factory.setUsername("admin");
        factory.setPassword("admin");
        
        return factory;
    }
    
    @Bean
    public OrientTransactionManager transactionManager() {
        return new OrientTransactionManager(factory());
    }
    
    @Bean
    public OrientObjectTemplate objectTemplate() {
        return new OrientObjectTemplate(factory());
    }
    
        
    @PostConstruct
    public void registerEntities() {
        factory().db().getEntityManager().registerEntityClass(Person.class);
    }
}

Generating a release http://veithen.github.io/2013/05/26/github-bintray-maven-release-plugin.html :

    mvn -Prelease clean install

Performing a release

    Go the the Bintray Web site and add a new version for the package.

    Execute the release process as follows:


    mvn release:prepare
    mvn release:perform

About

Spring Data implementation for OrientDB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%