This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource"> | |
<property name="driverClassName" value="${database.driverClassName}" /> | |
<property name="url" value="${database.url}" /> | |
<property name="username" value="${database.username}" /> | |
<property name="password" value="${database.password}" /> | |
<property name="testOnBorrow" value="true" /> | |
<property name="testOnReturn" value="true" /> | |
<property name="testWhileIdle" value="true" /> | |
<property name="timeBetweenEvictionRunsMillis" value="1800000" /> | |
<property name="numTestsPerEvictionRun" value="3" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<settings xmlns="_http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="_http://www.w3.org/2001/XMLSchema-instance" | |
xsichemaLocation="_http://maven.apache.org/SETTINGS/1.0.0 | |
_http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<proxies> | |
<proxy> | |
<id>proxy.societe.com</id> | |
<active>true</active> | |
<protocol>http</protocol> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mvn --encrypt-master-password [mot de passe] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.tuto.couchbase; | |
import com.couchbase.client.CouchbaseClient; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.tuto</groupId> | |
<artifactId>couchbase</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.tuto.couchbase; | |
public class Book { | |
private String id; | |
private String author; | |
private String title; | |
private String publisheer; | |
private String date; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.tuto.couchbase; | |
import com.couchbase.client.CouchbaseClient; | |
import java.io.IOException; | |
import java.net.URI; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class CouchbaseConnection { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.tuto</groupId> | |
<artifactId>couchbase</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function (doc, meta) { | |
if(meta.id.indexOf('book_') == 0) { | |
emit(parseInt(doc.date.substring(0,4)),[doc.author,doc.title]); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "4", | |
"author": "Khaled Hosseini", | |
"title": "A Thousand Splendid Suns", | |
"publisheer": "Riverhead Hardcover", | |
"date": "2007-05-22" | |
} |
OlderNewer