Skip to content
Permalink
Browse files
Merge pull request #5 from myrle-krantz/develop
Updating package names.
  • Loading branch information
myrle-krantz committed Apr 16, 2018
2 parents e33fc9b + 3a1b92e commit a30c2681efc66ab56cbf49ab021b89bb81ad2613
Showing 16 changed files with 32 additions and 35 deletions.
@@ -1,9 +1,5 @@
# Apache Fineract CN MariaDB

[![Join the chat at https://gitter.im/mifos-initiative/mifos.io](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mifos-initiative/mifos.io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This project is an umbrella for all Mifos I/O Core components.

## Abstract
Apache Fineract CN is an application framework for digital financial services, a system to support nationwide and cross-national financial transactions and help to level and speed the creation of an inclusive, interconnected digital economy for every nation in the world.

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;

import org.springframework.context.annotation.Import;

@@ -16,15 +16,15 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;


import com.jolbox.bonecp.BoneCPDataSource;
import io.mifos.core.lang.ApplicationName;
import io.mifos.core.lang.config.EnableApplicationName;
import io.mifos.core.mariadb.domain.FlywayFactoryBean;
import io.mifos.core.mariadb.util.JdbcUrlBuilder;
import io.mifos.core.mariadb.util.MariaDBConstants;
import org.apache.fineract.cn.mariadb.domain.FlywayFactoryBean;
import org.apache.fineract.cn.mariadb.util.JdbcUrlBuilder;
import org.apache.fineract.cn.mariadb.util.MariaDBConstants;
import org.apache.fineract.cn.lang.ApplicationName;
import org.apache.fineract.cn.lang.config.EnableApplicationName;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -69,7 +69,7 @@ public LocalContainerEntityManagerFactoryBean entityManagerFactory(final DataSou
final LocalContainerEntityManagerFactoryBean em = new LocalContainerEntityManagerFactoryBean();
em.setPersistenceUnitName("metaPU");
em.setDataSource(dataSource);
em.setPackagesToScan("io.mifos.**.repository");
em.setPackagesToScan("org.apache.fineract.cn.**.repository");

final JpaVendorAdapter vendorAdapter = new HibernateJpaVendorAdapter();
em.setJpaVendorAdapter(vendorAdapter);
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;
@@ -16,11 +16,11 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;

import io.mifos.core.mariadb.domain.ContextAwareRoutingDataSource;
import io.mifos.core.mariadb.util.JdbcUrlBuilder;
import io.mifos.core.mariadb.util.MariaDBConstants;
import org.apache.fineract.cn.mariadb.domain.ContextAwareRoutingDataSource;
import org.apache.fineract.cn.mariadb.util.JdbcUrlBuilder;
import org.apache.fineract.cn.mariadb.util.MariaDBConstants;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;


import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.config;
package org.apache.fineract.cn.mariadb.config;

import com.jolbox.bonecp.BoneCPDataSource;

@@ -16,12 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.domain;
package org.apache.fineract.cn.mariadb.domain;

import com.jolbox.bonecp.BoneCPDataSource;
import io.mifos.core.lang.TenantContextHolder;
import io.mifos.core.mariadb.util.JdbcUrlBuilder;
import io.mifos.core.mariadb.util.MariaDBConstants;
import org.apache.fineract.cn.mariadb.util.JdbcUrlBuilder;
import org.apache.fineract.cn.mariadb.util.MariaDBConstants;
import org.apache.fineract.cn.lang.TenantContextHolder;
import org.apache.fineract.cn.mariadb.util.JdbcUrlBuilder.DatabaseType;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
@@ -36,12 +37,12 @@
public final class ContextAwareRoutingDataSource extends AbstractRoutingDataSource {

private final Logger logger;
private final JdbcUrlBuilder.DatabaseType type;
private final DatabaseType type;
private final ConcurrentHashMap<String, DataSource> dynamicDataSources;
private DataSource metaDataSource;

public ContextAwareRoutingDataSource(@Qualifier(MariaDBConstants.LOGGER_NAME) final Logger logger,
final JdbcUrlBuilder.DatabaseType type) {
final DatabaseType type) {
super();
this.logger = logger;
this.type = type;
@@ -16,9 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.domain;
package org.apache.fineract.cn.mariadb.domain;

import io.mifos.core.lang.ApplicationName;
import org.apache.fineract.cn.lang.ApplicationName;
import org.flywaydb.core.Flyway;

import javax.sql.DataSource;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.domain;
package org.apache.fineract.cn.mariadb.domain;

@SuppressWarnings("WeakerAccess")
public final class Tenant {
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

public final class JdbcUrlBuilder {

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@@ -16,14 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

import io.mifos.core.lang.DateConverter;

import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import org.apache.fineract.cn.lang.DateConverter;

@Converter
public class LocalDateTimeConverter implements AttributeConverter<LocalDateTime, Timestamp> {
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

public interface MariaDBConstants {

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

import org.junit.Assert;
import org.junit.Test;
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos.core.mariadb.util;
package org.apache.fineract.cn.mariadb.util;

import org.junit.Assert;
import org.junit.Test;

0 comments on commit a30c268

Please sign in to comment.