Skip to content

Commit

Permalink
add NDBMappingContext bean
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Dec 13, 2024
1 parent c1633c0 commit f44970c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencyManagement {
}
}
group = 'com.nucleodb'
version = '3.6.4'
version = '3.6.5'

repositories {
mavenCentral()
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/nucleodb/spring/config/NDBInstance.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
package com.nucleodb.spring.config;

import com.nucleodb.library.NucleoDB;
import com.nucleodb.spring.mapping.NDBMappingContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class NDBInstance {
@Bean
public NucleoDB createNucleoDB(){
return new NucleoDB();
}
@Bean
@Primary
public NDBMappingContext ndbMappingContext() {
return new NDBMappingContext();
}
}

0 comments on commit f44970c

Please sign in to comment.