Spring Morphia

A Commons Library to provide moprhia configuration

License

License

MIT
GroupId

GroupId

uk.co.caeldev
ArtifactId

ArtifactId

spring-morphia
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Morphia
A Commons Library to provide moprhia configuration
Project URL

Project URL

https://github.com/caelwinner/spring-morphia
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/caelwinner/spring-morphia.git

Download spring-morphia

How to add to project

<!-- https://jarcasting.com/artifacts/uk.co.caeldev/spring-morphia/ -->
<dependency>
    <groupId>uk.co.caeldev</groupId>
    <artifactId>spring-morphia</artifactId>
    <version>0.1.5</version>
</dependency>
// https://jarcasting.com/artifacts/uk.co.caeldev/spring-morphia/
implementation 'uk.co.caeldev:spring-morphia:0.1.5'
// https://jarcasting.com/artifacts/uk.co.caeldev/spring-morphia/
implementation ("uk.co.caeldev:spring-morphia:0.1.5")
'uk.co.caeldev:spring-morphia:jar:0.1.5'
<dependency org="uk.co.caeldev" name="spring-morphia" rev="0.1.5">
  <artifact name="spring-morphia" type="jar" />
</dependency>
@Grapes(
@Grab(group='uk.co.caeldev', module='spring-morphia', version='0.1.5')
)
libraryDependencies += "uk.co.caeldev" % "spring-morphia" % "0.1.5"
[uk.co.caeldev/spring-morphia "0.1.5"]

Dependencies

compile (4)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-web jar 1.5.9.RELEASE
org.springframework.data : spring-data-commons jar
com.google.guava : guava jar 23.0
org.mongodb.morphia : morphia jar 1.3.2

test (6)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 1.5.9.RELEASE
org.assertj : assertj-core jar 3.5.2
uk.org.fyodor : fyodor-core jar 1.0.0
uk.org.fyodor : fyodor-junit jar 1.0.0
com.github.fakemongo : fongo jar 2.1.0
org.apache.commons : commons-lang3 jar 3.7

Project Modules

There are no modules declared in this project.

#Spring Morphia

Build Status Maven Central

Spring Mophia provides a simple way to add to your project all the beans that configuration that your project will need to have everything setup with one annotation.

##How to use it

Add as dependency to your project and then Add the following annotation to start using it.

Step 1

Add this annotation to your configuration class:

@Configuration
@EnableSpringMorphia
public class Application {

}

Having this annotation will define in your spring context all the necessary to use this library.

Step 2

define the following properties in your app:

mongo.servers[0].name=server
mongo.servers[0].port=2701
mongo.database=testdb
mongo.username=testuser
mongo.password=testpassword

morphia.entityPackage=your.entity.package

Versions

Version
0.1.5
0.1.4
0.1.3
0.1.1
0.1.0