Skip to content

Instantly share code, notes, and snippets.

View enterprisesaas's full-sized avatar

David King enterprisesaas

View GitHub Profile

Keybase proof

I hereby claim:

  • I am enterprisesaas on github.
  • I am pangaiom (https://keybase.io/pangaiom) on keybase.
  • I have a public key ASD-wKBZ518cqUcTB1MS7BfHIf_94uJ8uIeIz0PQTzfsQwo

To claim this, I am signing this object:

@enterprisesaas
enterprisesaas / keybase.md
Created January 22, 2019 03:45
keybase.md

Keybase proof I hereby claim: * I am enterprisesaas on github. * I am pangaiom (https://keybase.io/pangaiom) on keybase. * I have a public key ASDxCZ1_gWYgxxbzRNs8Kem_pNOpDYizOQK_a5ER_MoCEwo To claim this, I am signing this object: ```json { "body": { "key": { "eldest_kid": "0120f1099d7f816620c716f344db3c29e9bfa4d3a90d88b33902bf6b9111fcca02130a", "host": "keybase.io", "kid": "0120f1099d7f816620c716f344db3c29e9bfa4d3a90d88b33902bf6b9111fcca02130a", "uid": "2c94ace9db6e44471603e84c35519419", "username": "pangaiom" }, "merkle_root": { "ctime": 1548128194, "hash": "f4f8a901da3d2291e69175977e165e7e7777e630fd69d8081c125b744c7af10d569ab3dc4a36d848121df3cc3ca1d656c093449bcba5d74c4b68f6de0e92cd0e", "hash_meta": "7e4136bcf36fbee89ae3593a7a68326be91dc342a261c0cc82bb671e5826d00a", "seqno": 4537968 }, "service": { "entropy": "qes9PFAFIuUAkk1B0Zf3BHJI", "name": "github", "username": "enterprisesaas" }, "type"

@enterprisesaas
enterprisesaas / MongoUserDBTest.java
Created December 19, 2013 14:43
Skeleton unit test for User dao operations
package concepts;
import config.MongoConfig;
import model.User;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
@enterprisesaas
enterprisesaas / User.java
Created December 19, 2013 14:42
MongoDB annotated user using Spring
package model;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.io.Serializable;
import java.util.UUID;
/**
* User
@enterprisesaas
enterprisesaas / MongoConfig.java
Created December 19, 2013 14:42
Spring Java Configuration for mongo db operations
package config;
import com.mongodb.MongoClient;
import concepts.UserMongoDao;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.MongoDbFactory;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.SimpleMongoDbFactory;
@enterprisesaas
enterprisesaas / UserMongoDao.java
Created December 19, 2013 14:41
Data access object representing a User
package concepts;
import model.User;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import java.util.LinkedList;
import java.util.List;