INT-1219 migrated Loanshark sample to 'samples' package hierarchy

This commit is contained in:
Oleg Zhurakousky
2010-07-13 02:50:18 +00:00
parent 959299ece4
commit d7d30e6c57
17 changed files with 29 additions and 28 deletions

View File

@@ -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>

View File

@@ -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 -->

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1,4 +1,4 @@
package com.springframework.integration.loanbroker.loanshark.domain;
package com.springframework.integration.samples.loanbroker.loanshark.domain;
import java.lang.String;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;
/**