INT-1219 migrated Loanshark sample to 'samples' package hierarchy
This commit is contained in:
@@ -5,11 +5,6 @@
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||
<classpathentry excluding="**" 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">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.5</version>
|
||||
<scope>provided</scope>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- available only in EBR. see <repositories> section at bottom -->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
project --topLevelPackage com.springframework.integration.loanbroker.loanshark3
|
||||
project --topLevelPackage com.springframework.samples.integration.loanbroker.loanshark3
|
||||
persistence setup --provider HIBERNATE --database HYPERSONIC_IN_MEMORY
|
||||
entity --class ~.domain.LoanShark
|
||||
field string --fieldName name
|
||||
@@ -7,6 +7,6 @@ field number --type java.lang.Double --fieldName averageRate
|
||||
finder add --finderName findLoanSharksByName
|
||||
controller scaffold --class ~.web.SharkController
|
||||
logging setup --level DEBUG
|
||||
dependency add --artifactId org.springframework.integration.ip --groupId org.springframework.integration --version 2.0.0.M3
|
||||
dependency add --artifactId org.springframework.integration.ip --groupId org.springframework.integration --version 2.0.0.M5
|
||||
//change spring version in pom.xml to 3.0.0.RELEASE-A before perform eclipse
|
||||
//perform eclipse
|
||||
|
||||
@@ -13,13 +13,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.springframework.integration.loanbroker.loanshark.biz;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.biz;
|
||||
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.springframework.integration.loanbroker.loanshark.biz;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.biz;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.springframework.integration.loanbroker.loanshark.biz;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.biz;
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import org.springframework.roo.addon.entity.RooEntity;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Configurable;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
|
||||
import java.lang.Integer;
|
||||
import java.lang.Long;
|
||||
import java.util.List;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import java.lang.String;
|
||||
import java.lang.SuppressWarnings;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import java.lang.Double;
|
||||
import java.lang.Long;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.domain;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.domain;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.web;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.web;
|
||||
|
||||
import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
|
||||
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.springframework.integration.loanbroker.loanshark.web;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.web;
|
||||
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
|
||||
import java.lang.Long;
|
||||
import java.lang.String;
|
||||
import javax.validation.Valid;
|
||||
@@ -46,7 +46,7 @@
|
||||
The most commonly used annotation is @Autowired, which instructs Spring to
|
||||
dependency inject an object into your class.
|
||||
-->
|
||||
<context:component-scan base-package="com.springframework.integration.loanbroker.loanshark">
|
||||
<context:component-scan base-package="com.springframework.integration.samples.loanbroker.loanshark">
|
||||
<context:exclude-filter expression=".*_Roo_.*" type="regex"/>
|
||||
<context:exclude-filter expression="org.springframework.stereotype.Controller" type="annotation"/>
|
||||
</context:component-scan>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
input-channel="transformedChannel"
|
||||
ref="accumulator" />
|
||||
|
||||
<bean id="accumulator" class="com.springframework.integration.loanbroker.loanshark.biz.Accumulator" />
|
||||
<bean id="transformer" class="com.springframework.integration.loanbroker.loanshark.biz.SharkTransformer" />
|
||||
<bean id="accumulator" class="com.springframework.integration.loanbroker.samples.loanshark.biz.Accumulator" />
|
||||
<bean id="transformer" class="com.springframework.integration.loanbroker.samples.loanshark.biz.SharkTransformer" />
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.springframework.integration.loanbroker.loanshark.biz;
|
||||
package com.springframework.integration.samples.loanbroker.loanshark.biz;
|
||||
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
@@ -25,7 +25,9 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import com.springframework.integration.loanbroker.loanshark.domain.LoanShark;
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.biz.Accumulator;
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.biz.SharkQuote;
|
||||
import com.springframework.integration.samples.loanbroker.loanshark.domain.LoanShark;
|
||||
|
||||
|
||||
/**
|
||||
Reference in New Issue
Block a user