/jmoordbdesktop

Java Mapper for MongoDB and OrientDB

Primary LanguageJava

jmoordbdesktop

Object Documment Mapper for Java Mapper for MongoDB ,OrientDB and Couchbase

Es un Framework para integrar MongoDB/OrientDB/Cochbase con las aplicaciones Java de una manera sencilla.

Sintaxis similiar a JPA

##Soporta Documentos embebidos mediante la anotación @Embedded

Documentos relacionados mediante la anotación @Referenced

##Documentación y Libro https://www.gitbook.com/book/avbravo/jmoordb/details

Dependencias

  <dependencies>
      <dependency>
    <groupId>com.github.avbravo</groupId>
    <artifactId>jmoordb</artifactId>
    <version>0.1.9.6</version>
 </dependency>
 </dependencies>

 <repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://jitpack.io</url>
	</repository>
</repositories>

###Entity @Getter

@Setter

public class Paises {

@Id

private String idpais;

private String pais;

@Embedded

private Planetas planetas;

@Referenced(document="Continentes",field="idcontinente, lazy=true, facade="com.avbravo.ejb.ContinentesFacade)

private Continentes continentes;

}

Facade

Las operaciones CRUD se implementan atraves de un Facade.

save()

Paises paises = new Paises("pa","Panama");

paisesFacade.save(paises);

find()

Paises paises = paisesFacade.find("idpais","pa");

Publicaciones Adam Bien JPA AND MICROSERVICES, RXJAVA, CRUD AND TX, GRADLE, CROSS FIELD VALIDATION, LICENSING, MDA OR TOPICS FOR THE 35TH AIRHACKS.TV http://adambien.blog/roller/abien/entry/jpa_and_microservices_rxjava_crud

Video https://www.youtube.com/watch?v=eSoJYBOgIHk