217 changed files with 15652 additions and 15546 deletions
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-document-dist</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Fri Oct 08 14:31:54 EDT 2010 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
includeModules=false |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
@ -1,10 +0,0 @@
@@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/> |
||||
<classpathentry kind="src" path="src/test/java"/> |
||||
<classpathentry kind="src" path="src/test/resources"/> |
||||
<classpathentry kind="src" path="src/main/resources"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> |
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> |
||||
<classpathentry kind="output" path="target/classes"/> |
||||
</classpath> |
||||
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-couchdb</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,6 +0,0 @@
@@ -1,6 +0,0 @@
|
||||
#Wed Oct 06 14:49:48 EDT 2010 |
||||
eclipse.preferences.version=1 |
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 |
||||
org.eclipse.jdt.core.compiler.compliance=1.5 |
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
||||
org.eclipse.jdt.core.compiler.source=1.5 |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Wed Oct 06 14:49:46 EDT 2010 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
includeModules=false |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
@ -1,33 +1,33 @@
@@ -1,33 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?> |
||||
<xsd:schema xmlns="http://www.springframework.org/schema/data/couch" |
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
||||
xmlns:tool="http://www.springframework.org/schema/tool" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xmlns:repository="http://www.springframework.org/schema/data/repository" |
||||
targetNamespace="http://www.springframework.org/schema/data/couch" |
||||
elementFormDefault="qualified" attributeFormDefault="unqualified"> |
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
||||
xmlns:tool="http://www.springframework.org/schema/tool" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xmlns:repository="http://www.springframework.org/schema/data/repository" |
||||
targetNamespace="http://www.springframework.org/schema/data/couch" |
||||
elementFormDefault="qualified" attributeFormDefault="unqualified"> |
||||
|
||||
<xsd:import namespace="http://www.springframework.org/schema/tool" /> |
||||
<xsd:import namespace="http://www.springframework.org/schema/context" |
||||
schemaLocation="http://www.springframework.org/schema/context/spring-context.xsd" /> |
||||
<xsd:import namespace="http://www.springframework.org/schema/data/repository" |
||||
schemaLocation="http://www.springframework.org/schema/data/repository/spring-repository.xsd" /> |
||||
<xsd:import namespace="http://www.springframework.org/schema/tool"/> |
||||
<xsd:import namespace="http://www.springframework.org/schema/context" |
||||
schemaLocation="http://www.springframework.org/schema/context/spring-context.xsd"/> |
||||
<xsd:import namespace="http://www.springframework.org/schema/data/repository" |
||||
schemaLocation="http://www.springframework.org/schema/data/repository/spring-repository.xsd"/> |
||||
|
||||
|
||||
<xsd:element name="jmx"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
<xsd:element name="jmx"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
Defines a JMX Model MBeans for monitoring a CouchDB server'. |
||||
]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="database-url" type="xsd:string" use="optional"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
</xsd:annotation> |
||||
<xsd:complexType> |
||||
<xsd:attribute name="database-url" type="xsd:string" use="optional"> |
||||
<xsd:annotation> |
||||
<xsd:documentation><![CDATA[ |
||||
The database URL of the CouchDB]]></xsd:documentation> |
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
</xsd:annotation> |
||||
</xsd:attribute> |
||||
</xsd:complexType> |
||||
</xsd:element> |
||||
|
||||
</xsd:schema> |
||||
@ -1,25 +1,24 @@
@@ -1,25 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xmlns:p="http://www.springframework.org/schema/p" |
||||
xmlns:couch="http://www.springframework.org/schema/data/couch" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xmlns:p="http://www.springframework.org/schema/p" |
||||
xmlns:couch="http://www.springframework.org/schema/data/couch" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
||||
http://www.springframework.org/schema/data/couch http://www.springframework.org/schema/data/couch/spring-couch-1.0.xsd |
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
||||
|
||||
|
||||
|
||||
<couch:jmx/> |
||||
<couch:jmx/> |
||||
|
||||
<context:mbean-export/> |
||||
<context:mbean-export/> |
||||
|
||||
<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean" |
||||
p:port="1099"/> |
||||
|
||||
<!-- Expose JMX over RMI --> |
||||
<bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="registry" |
||||
p:objectName="connector:name=rmi" |
||||
p:serviceUrl="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/myconnector"/> |
||||
|
||||
<bean id="registry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean" |
||||
p:port="1099" /> |
||||
|
||||
<!-- Expose JMX over RMI --> |
||||
<bean id="serverConnector" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="registry" |
||||
p:objectName="connector:name=rmi" |
||||
p:serviceUrl="service:jmx:rmi://localhost/jndi/rmi://localhost:1099/myconnector" /> |
||||
|
||||
</beans> |
||||
@ -1,12 +0,0 @@
@@ -1,12 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> |
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
||||
<classpathentry kind="output" path="target/classes"/> |
||||
</classpath> |
||||
@ -1,36 +0,0 @@
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-document-core</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.validation.validationbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Wed Mar 09 13:51:17 EST 2011 |
||||
eclipse.preferences.version=1 |
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 |
||||
org.eclipse.jdt.core.compiler.compliance=1.6 |
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
||||
org.eclipse.jdt.core.compiler.source=1.6 |
||||
@ -1,6 +0,0 @@
@@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project-modules id="moduleCoreId" project-version="1.5.0"> |
||||
<wb-module deploy-name="spring-datastore-document-core"> |
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/> |
||||
</wb-module> |
||||
</project-modules> |
||||
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<faceted-project> |
||||
<installed facet="jst.utility" version="1.0"/> |
||||
<installed facet="java" version="1.6"/> |
||||
</faceted-project> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Wed Oct 06 14:49:46 EDT 2010 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
includeModules=false |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
@ -1,45 +1,43 @@
@@ -1,45 +1,43 @@
|
||||
package org.springframework.data.document.analytics; |
||||
|
||||
import java.util.Date; |
||||
import java.util.Map; |
||||
|
||||
public class ControllerCounter { |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public double getCount() { |
||||
return count; |
||||
} |
||||
|
||||
public void setCount(double count) { |
||||
this.count = count; |
||||
} |
||||
|
||||
public Map<String, Double> getMethods() { |
||||
return methods; |
||||
} |
||||
|
||||
|
||||
|
||||
public void setMethods(Map<String, Double> methods) { |
||||
this.methods = methods; |
||||
} |
||||
|
||||
private String name; |
||||
|
||||
private double count; |
||||
|
||||
private Map<String, Double> methods; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "ControllerCounter [name=" + name + ", count=" + count |
||||
+ ", methods=" + methods + "]"; |
||||
} |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public double getCount() { |
||||
return count; |
||||
} |
||||
|
||||
public void setCount(double count) { |
||||
this.count = count; |
||||
} |
||||
|
||||
public Map<String, Double> getMethods() { |
||||
return methods; |
||||
} |
||||
|
||||
|
||||
public void setMethods(Map<String, Double> methods) { |
||||
this.methods = methods; |
||||
} |
||||
|
||||
private String name; |
||||
|
||||
private double count; |
||||
|
||||
private Map<String, Double> methods; |
||||
|
||||
@Override |
||||
public String toString() { |
||||
return "ControllerCounter [name=" + name + ", count=" + count |
||||
+ ", methods=" + methods + "]"; |
||||
} |
||||
} |
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-document-parent</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Tue Jun 29 21:59:00 EDT 2010 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
includeModules=false |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry including="**/*.aj|**/*.java" kind="src" output="target/classes" path="src/main/java"/> |
||||
<classpathentry including="**/*.aj|**/*.java" kind="src" output="target/test-classes" path="src/test/java"/> |
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> |
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/> |
||||
<classpathentry kind="output" path="target/classes"/> |
||||
</classpath> |
||||
@ -1,24 +0,0 @@
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-mongodb-cross-store</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.ajdt.core.ajbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.ajdt.ui.ajnature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Tue Mar 01 09:48:37 EST 2011 |
||||
eclipse.preferences.version=1 |
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 |
||||
org.eclipse.jdt.core.compiler.compliance=1.6 |
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
||||
org.eclipse.jdt.core.compiler.source=1.6 |
||||
@ -1,8 +0,0 @@
@@ -1,8 +0,0 @@
|
||||
#Mon Feb 28 16:25:59 EST 2011 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
@ -1,13 +1,15 @@
@@ -1,13 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
||||
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
||||
<persistence-unit name="test" transaction-type="RESOURCE_LOCAL"> |
||||
<provider>org.hibernate.ejb.HibernatePersistence</provider> |
||||
<class>org.springframework.persistence.document.test.Account</class> |
||||
<properties> |
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> |
||||
<!--value='create' to build a new database on each run; value='update' to modify an existing database; value='create-drop' means the same as 'create' but also drops tables when Hibernate closes; value='validate' makes no changes to the database--> |
||||
<property name="hibernate.hbm2ddl.auto" value="update"/> |
||||
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/> |
||||
</properties> |
||||
</persistence-unit> |
||||
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
version="2.0" |
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"> |
||||
<persistence-unit name="test" transaction-type="RESOURCE_LOCAL"> |
||||
<provider>org.hibernate.ejb.HibernatePersistence</provider> |
||||
<class>org.springframework.persistence.document.test.Account</class> |
||||
<properties> |
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect"/> |
||||
<!--value='create' to build a new database on each run; value='update' to modify an existing database; value='create-drop' means the same as 'create' but also drops tables when Hibernate closes; value='validate' makes no changes to the database--> |
||||
<property name="hibernate.hbm2ddl.auto" value="update"/> |
||||
<property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/> |
||||
</properties> |
||||
</persistence-unit> |
||||
</persistence> |
||||
|
||||
@ -1,98 +1,99 @@
@@ -1,98 +1,99 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<beans xmlns="http://www.springframework.org/schema/beans" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:tx="http://www.springframework.org/schema/tx" |
||||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xmlns:tx="http://www.springframework.org/schema/tx" |
||||
xmlns:jdbc="http://www.springframework.org/schema/jdbc" |
||||
xmlns:context="http://www.springframework.org/schema/context" |
||||
xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd |
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd |
||||
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd |
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"> |
||||
|
||||
<context:spring-configured/> |
||||
|
||||
<context:component-scan base-package="org.springframework.persistence.test"> |
||||
<context:exclude-filter expression=".*_Roo_.*" type="regex"/> |
||||
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/> |
||||
</context:component-scan> |
||||
|
||||
<!-- Store spanning config --> |
||||
|
||||
<bean class="org.springframework.persistence.StoreSpanning" |
||||
factory-method="aspectOf" > |
||||
<property name="mappingValidator"> |
||||
<bean class="org.springframework.persistence.support.SimpleMappingValidator" /> |
||||
</property> |
||||
</bean> |
||||
|
||||
<bean id="entityOperationsLocator" class="org.springframework.persistence.ChainingEntityOperationsLocator" /> |
||||
|
||||
<bean class="org.springframework.persistence.ChainingForeignStoreKeyManagerLocator" /> |
||||
|
||||
<bean class="org.springframework.persistence.PresentKeyForeignStoreKeyManager" autowire="constructor" /> |
||||
|
||||
<bean class="org.springframework.persistence.GeneratedFieldForeignStoreKeyManager" /> |
||||
|
||||
<bean class="org.springframework.persistence.document.MongoEntityOperations" > |
||||
<property name="order" value="5" /> |
||||
<property name="entityInstantiator"> |
||||
<bean class="org.springframework.persistence.support.ChangeSetConstructorEntityInstantiator" /> |
||||
</property> |
||||
<property name="changeSetPersister" ref="mongoChangeSetPersister" /> |
||||
</bean> |
||||
|
||||
<bean class="org.springframework.persistence.EntityManagerJpaEntityOperations" /> |
||||
|
||||
<bean class="org.springframework.persistence.support.ChangeSetForeignStoreKeyManager"> |
||||
<property name="fieldDelimiter" value="#"/> |
||||
</bean> |
||||
|
||||
<!-- Mongo config --> |
||||
<bean id="mongo" class="org.springframework.data.document.mongodb.MongoFactoryBean"> |
||||
<property name="host" value="localhost" /> |
||||
<property name="port" value="27017" /> |
||||
</bean> |
||||
|
||||
<bean id="mongoTemplate" class="org.springframework.data.document.mongodb.MongoTemplate"> |
||||
<constructor-arg name="mongo" ref="mongo" /> |
||||
<constructor-arg name="databaseName" value="test" /> |
||||
</bean> |
||||
|
||||
<bean class="org.springframework.data.document.mongodb.MongoExceptionTranslator" /> |
||||
|
||||
<!-- Mongo aspect config --> |
||||
<bean class="org.springframework.persistence.document.MongoDocumentBacking" |
||||
factory-method="aspectOf"> |
||||
<property name="changeSetConfiguration" ref="mongoChangeSetConfiguration"/> |
||||
</bean> |
||||
<bean id ="mongoChangeSetPersister" class="org.springframework.persistence.document.MongoChangeSetPersister" /> |
||||
<bean id="mongoChangeSetSynchronizer" class="org.springframework.persistence.support.SimpleReflectiveChangeSetSynchronizer" /> |
||||
<bean id="mongoChangeSetConfiguration" class="org.springframework.persistence.support.ChangeSetConfiguration"> |
||||
<property name="changeSetPersister" ref="mongoChangeSetPersister"/> |
||||
<property name="changeSetManager" ref="mongoChangeSetSynchronizer"/> |
||||
</bean> |
||||
<!-- Needed for ChangeSet persistence --> |
||||
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean" /> |
||||
|
||||
<jdbc:embedded-database id="dataSource" type="HSQL"> |
||||
</jdbc:embedded-database> |
||||
|
||||
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager" > |
||||
<property name="entityManagerFactory" ref="entityManagerFactory"/> |
||||
</bean> |
||||
|
||||
<tx:annotation-driven mode="aspectj" transaction-manager="transactionManager"/> |
||||
|
||||
<bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id="entityManagerFactory"> |
||||
<property name="persistenceUnitName" value="test"/> |
||||
<property name="dataSource" ref="dataSource"/> |
||||
<property name="jpaVendorAdapter"> |
||||
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> |
||||
<property name="showSql" value="true"/> |
||||
<property name="generateDdl" value="true"/> |
||||
<property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect"/> |
||||
</bean> |
||||
</property> |
||||
</bean> |
||||
<context:spring-configured/> |
||||
|
||||
<context:component-scan base-package="org.springframework.persistence.test"> |
||||
<context:exclude-filter expression=".*_Roo_.*" type="regex"/> |
||||
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/> |
||||
</context:component-scan> |
||||
|
||||
<!-- Store spanning config --> |
||||
|
||||
<bean class="org.springframework.persistence.StoreSpanning" |
||||
factory-method="aspectOf"> |
||||
<property name="mappingValidator"> |
||||
<bean class="org.springframework.persistence.support.SimpleMappingValidator"/> |
||||
</property> |
||||
</bean> |
||||
|
||||
<bean id="entityOperationsLocator" class="org.springframework.persistence.ChainingEntityOperationsLocator"/> |
||||
|
||||
<bean class="org.springframework.persistence.ChainingForeignStoreKeyManagerLocator"/> |
||||
|
||||
<bean class="org.springframework.persistence.PresentKeyForeignStoreKeyManager" autowire="constructor"/> |
||||
|
||||
<bean class="org.springframework.persistence.GeneratedFieldForeignStoreKeyManager"/> |
||||
|
||||
<bean class="org.springframework.persistence.document.MongoEntityOperations"> |
||||
<property name="order" value="5"/> |
||||
<property name="entityInstantiator"> |
||||
<bean class="org.springframework.persistence.support.ChangeSetConstructorEntityInstantiator"/> |
||||
</property> |
||||
<property name="changeSetPersister" ref="mongoChangeSetPersister"/> |
||||
</bean> |
||||
|
||||
<bean class="org.springframework.persistence.EntityManagerJpaEntityOperations"/> |
||||
|
||||
<bean class="org.springframework.persistence.support.ChangeSetForeignStoreKeyManager"> |
||||
<property name="fieldDelimiter" value="#"/> |
||||
</bean> |
||||
|
||||
<!-- Mongo config --> |
||||
<bean id="mongo" class="org.springframework.data.document.mongodb.MongoFactoryBean"> |
||||
<property name="host" value="localhost"/> |
||||
<property name="port" value="27017"/> |
||||
</bean> |
||||
|
||||
<bean id="mongoTemplate" class="org.springframework.data.document.mongodb.MongoTemplate"> |
||||
<constructor-arg name="mongo" ref="mongo"/> |
||||
<constructor-arg name="databaseName" value="test"/> |
||||
</bean> |
||||
|
||||
<bean class="org.springframework.data.document.mongodb.MongoExceptionTranslator"/> |
||||
|
||||
<!-- Mongo aspect config --> |
||||
<bean class="org.springframework.persistence.document.MongoDocumentBacking" |
||||
factory-method="aspectOf"> |
||||
<property name="changeSetConfiguration" ref="mongoChangeSetConfiguration"/> |
||||
</bean> |
||||
<bean id="mongoChangeSetPersister" class="org.springframework.persistence.document.MongoChangeSetPersister"/> |
||||
<bean id="mongoChangeSetSynchronizer" |
||||
class="org.springframework.persistence.support.SimpleReflectiveChangeSetSynchronizer"/> |
||||
<bean id="mongoChangeSetConfiguration" class="org.springframework.persistence.support.ChangeSetConfiguration"> |
||||
<property name="changeSetPersister" ref="mongoChangeSetPersister"/> |
||||
<property name="changeSetManager" ref="mongoChangeSetSynchronizer"/> |
||||
</bean> |
||||
<!-- Needed for ChangeSet persistence --> |
||||
<bean id="conversionService" class="org.springframework.context.support.ConversionServiceFactoryBean"/> |
||||
|
||||
<jdbc:embedded-database id="dataSource" type="HSQL"> |
||||
</jdbc:embedded-database> |
||||
|
||||
<bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> |
||||
<property name="entityManagerFactory" ref="entityManagerFactory"/> |
||||
</bean> |
||||
|
||||
<tx:annotation-driven mode="aspectj" transaction-manager="transactionManager"/> |
||||
|
||||
<bean class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean" id="entityManagerFactory"> |
||||
<property name="persistenceUnitName" value="test"/> |
||||
<property name="dataSource" ref="dataSource"/> |
||||
<property name="jpaVendorAdapter"> |
||||
<bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> |
||||
<property name="showSql" value="true"/> |
||||
<property name="generateDdl" value="true"/> |
||||
<property name="databasePlatform" value="org.hibernate.dialect.HSQLDialect"/> |
||||
</bean> |
||||
</property> |
||||
</bean> |
||||
|
||||
</beans> |
||||
|
||||
@ -1,19 +0,0 @@
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<classpath> |
||||
<classpathentry kind="src" output="target/classes" path="src/main/java"/> |
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/> |
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/resources"/> |
||||
<classpathentry kind="src" path="src/main/resources"/> |
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"> |
||||
<attributes> |
||||
<attribute name="org.eclipse.jst.component.nondependency" value=""/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"> |
||||
<attributes> |
||||
<attribute name="owner.project.facets" value="java"/> |
||||
</attributes> |
||||
</classpathentry> |
||||
<classpathentry kind="output" path="target/classes"/> |
||||
</classpath> |
||||
@ -1,36 +0,0 @@
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<projectDescription> |
||||
<name>spring-data-mongodb</name> |
||||
<comment></comment> |
||||
<projects> |
||||
</projects> |
||||
<buildSpec> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.common.project.facet.core.builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.jdt.core.javabuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.maven.ide.eclipse.maven2Builder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
<buildCommand> |
||||
<name>org.eclipse.wst.validation.validationbuilder</name> |
||||
<arguments> |
||||
</arguments> |
||||
</buildCommand> |
||||
</buildSpec> |
||||
<natures> |
||||
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
||||
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> |
||||
<nature>org.eclipse.jdt.core.javanature</nature> |
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature> |
||||
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> |
||||
</natures> |
||||
</projectDescription> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Wed Mar 09 13:51:37 EST 2011 |
||||
eclipse.preferences.version=1 |
||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled |
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 |
||||
org.eclipse.jdt.core.compiler.compliance=1.6 |
||||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error |
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
||||
org.eclipse.jdt.core.compiler.source=1.6 |
||||
@ -1,7 +0,0 @@
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project-modules id="moduleCoreId" project-version="1.5.0"> |
||||
<wb-module deploy-name="spring-data-mongodb"> |
||||
<wb-resource deploy-path="/" source-path="/src/main/java"/> |
||||
<wb-resource deploy-path="/" source-path="/src/main/resources"/> |
||||
</wb-module> |
||||
</project-modules> |
||||
@ -1,5 +0,0 @@
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<faceted-project> |
||||
<installed facet="jst.utility" version="1.0"/> |
||||
<installed facet="java" version="1.6"/> |
||||
</faceted-project> |
||||
@ -1,9 +0,0 @@
@@ -1,9 +0,0 @@
|
||||
#Wed Oct 06 14:49:46 EDT 2010 |
||||
activeProfiles= |
||||
eclipse.preferences.version=1 |
||||
fullBuildGoals=process-test-resources |
||||
includeModules=false |
||||
resolveWorkspaceProjects=true |
||||
resourceFilterGoals=process-resources resources\:testResources |
||||
skipCompilerPlugin=true |
||||
version=1 |
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
||||
package org.springframework.data.document.mongodb; |
||||
|
||||
public enum WriteResultChecking { |
||||
NONE, LOG, EXCEPTION |
||||
NONE, LOG, EXCEPTION |
||||
} |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue