Jean-Francois Leveque

Ajout du projet basique

Showing 65 changed files with 1526 additions and 0 deletions
1 +grogEE
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="ArtifactManager">
2 + <artifact type="war" name="grogEE:war">
3 + <output-path>$PROJECT_DIR$/target</output-path>
4 + <root id="archive" name="grogEE-1.0-SNAPSHOT.war">
5 + <element id="artifact" artifact-name="grogEE:war exploded" />
6 + </root>
7 + </artifact>
8 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="ArtifactManager">
2 + <artifact type="exploded-war" name="grogEE:war exploded">
3 + <output-path>$PROJECT_DIR$/target/grogEE-1.0-SNAPSHOT</output-path>
4 + <root id="root">
5 + <element id="directory" name="WEB-INF">
6 + <element id="directory" name="classes">
7 + <element id="module-output" name="grogEE" />
8 + </element>
9 + <element id="directory" name="lib">
10 + <element id="library" level="project" name="Maven: org.slf4j:slf4j-api:1.7.21" />
11 + <element id="library" level="project" name="Maven: ch.qos.logback:logback-classic:1.1.7" />
12 + <element id="library" level="project" name="Maven: ch.qos.logback:logback-core:1.1.7" />
13 + <element id="library" level="project" name="Maven: com.h2database:h2:1.4.192" />
14 + <element id="library" level="project" name="Maven: org.springframework.data:spring-data-jpa:1.9.4.RELEASE" />
15 + <element id="library" level="project" name="Maven: org.springframework.data:spring-data-commons:1.11.4.RELEASE" />
16 + <element id="library" level="project" name="Maven: org.springframework:spring-orm:4.2.7.RELEASE" />
17 + <element id="library" level="project" name="Maven: org.springframework:spring-jdbc:4.2.7.RELEASE" />
18 + <element id="library" level="project" name="Maven: org.springframework:spring-context:4.2.7.RELEASE" />
19 + <element id="library" level="project" name="Maven: org.springframework:spring-expression:4.2.7.RELEASE" />
20 + <element id="library" level="project" name="Maven: org.springframework:spring-aop:4.2.7.RELEASE" />
21 + <element id="library" level="project" name="Maven: aopalliance:aopalliance:1.0" />
22 + <element id="library" level="project" name="Maven: org.springframework:spring-tx:4.2.7.RELEASE" />
23 + <element id="library" level="project" name="Maven: org.springframework:spring-beans:4.2.7.RELEASE" />
24 + <element id="library" level="project" name="Maven: org.springframework:spring-core:4.2.7.RELEASE" />
25 + <element id="library" level="project" name="Maven: org.aspectj:aspectjrt:1.8.9" />
26 + <element id="library" level="project" name="Maven: org.slf4j:jcl-over-slf4j:1.7.21" />
27 + </element>
28 + </element>
29 + <element id="directory" name="META-INF">
30 + <element id="file-copy" path="$PROJECT_DIR$/target/grogEE-1.0-SNAPSHOT/META-INF/MANIFEST.MF" />
31 + </element>
32 + <element id="javaee-facet-resources" facet="grogEE/web/Web" />
33 + </root>
34 + </artifact>
35 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="CompilerConfiguration">
4 + <option name="DEFAULT_COMPILER" value="Javac" />
5 + <resourceExtensions />
6 + <wildcardResourcePatterns>
7 + <entry name="!?*.java" />
8 + <entry name="!?*.form" />
9 + <entry name="!?*.class" />
10 + <entry name="!?*.groovy" />
11 + <entry name="!?*.scala" />
12 + <entry name="!?*.flex" />
13 + <entry name="!?*.kt" />
14 + <entry name="!?*.clj" />
15 + </wildcardResourcePatterns>
16 + <annotationProcessing>
17 + <profile default="true" name="Default" enabled="false">
18 + <processorPath useClasspath="true" />
19 + </profile>
20 + <profile default="false" name="Maven default annotation processors profile" enabled="true">
21 + <sourceOutputDir name="target/generated-sources/annotations" />
22 + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
23 + <outputRelativeToContentRoot value="true" />
24 + <processorPath useClasspath="true" />
25 + <module name="grogEE" />
26 + </profile>
27 + </annotationProcessing>
28 + <bytecodeTargetLevel>
29 + <module name="grogEE" target="1.5" />
30 + </bytecodeTargetLevel>
31 + </component>
32 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="CopyrightManager">
2 + <settings default="" />
3 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="Encoding">
4 + <file url="file://$PROJECT_DIR$" charset="UTF-8" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: aopalliance:aopalliance:1.0">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/aopalliance/aopalliance/1.0/aopalliance-1.0.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/aopalliance/aopalliance/1.0/aopalliance-1.0-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/aopalliance/aopalliance/1.0/aopalliance-1.0-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: ch.qos.logback:logback-classic:1.1.7">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: ch.qos.logback:logback-core:1.1.7">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: com.h2database:h2:1.4.192">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/com/h2database/h2/1.4.192/h2-1.4.192.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/com/h2database/h2/1.4.192/h2-1.4.192-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/com/h2database/h2/1.4.192/h2-1.4.192-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: commons-collections:commons-collections:3.2.2">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: commons-lang:commons-lang:2.6">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.6/commons-lang-2.6.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.6/commons-lang-2.6-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/commons-lang/commons-lang/2.6/commons-lang-2.6-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: commons-pool:commons-pool:1.6">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/commons-pool/commons-pool/1.6/commons-pool-1.6.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/commons-pool/commons-pool/1.6/commons-pool-1.6-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/commons-pool/commons-pool/1.6/commons-pool-1.6-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: junit:junit:4.12">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: net.sourceforge.serp:serp:1.15.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/net/sourceforge/serp/serp/1.15.1/serp-1.15.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/net/sourceforge/serp/serp/1.15.1/serp-1.15.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/net/sourceforge/serp/serp/1.15.1/serp-1.15.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jms_1.1_spec/1.1.1/geronimo-jms_1.1_spec-1.1.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jpa_2.0_spec/1.1/geronimo-jpa_2.0_spec-1.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.openjpa:openjpa:2.4.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/openjpa/openjpa/2.4.1/openjpa-2.4.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/openjpa/openjpa/2.4.1/openjpa-2.4.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/openjpa/openjpa/2.4.1/openjpa-2.4.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.tomee:javaee-api:7.0">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomee/javaee-api/7.0/javaee-api-7.0.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomee/javaee-api/7.0/javaee-api-7.0-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomee/javaee-api/7.0/javaee-api-7.0-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.apache.xbean:xbean-asm5-shaded:3.17">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/xbean/xbean-asm5-shaded/3.17/xbean-asm5-shaded-3.17.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/xbean/xbean-asm5-shaded/3.17/xbean-asm5-shaded-3.17-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/apache/xbean/xbean-asm5-shaded/3.17/xbean-asm5-shaded-3.17-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.aspectj:aspectjrt:1.8.9">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/aspectj/aspectjrt/1.8.9/aspectjrt-1.8.9.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/aspectj/aspectjrt/1.8.9/aspectjrt-1.8.9-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/aspectj/aspectjrt/1.8.9/aspectjrt-1.8.9-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.assertj:assertj-core:1.6.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/assertj/assertj-core/1.6.1/assertj-core-1.6.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/assertj/assertj-core/1.6.1/assertj-core-1.6.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/assertj/assertj-core/1.6.1/assertj-core-1.6.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.mockito:mockito-core:1.10.19">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/mockito/mockito-core/1.10.19/mockito-core-1.10.19-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.objenesis:objenesis:2.1">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/objenesis/objenesis/2.1/objenesis-2.1.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/objenesis/objenesis/2.1/objenesis-2.1-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/objenesis/objenesis/2.1/objenesis-2.1-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.slf4j:jcl-over-slf4j:1.7.21">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.slf4j:slf4j-api:1.7.21">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework.data:spring-data-commons:1.11.4.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework.data:spring-data-jpa:1.9.4.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-jpa/1.9.4.RELEASE/spring-data-jpa-1.9.4.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-jpa/1.9.4.RELEASE/spring-data-jpa-1.9.4.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/data/spring-data-jpa/1.9.4.RELEASE/spring-data-jpa-1.9.4.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-aop:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-aop/4.2.7.RELEASE/spring-aop-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-aop/4.2.7.RELEASE/spring-aop-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-aop/4.2.7.RELEASE/spring-aop-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-beans:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-beans/4.2.7.RELEASE/spring-beans-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-beans/4.2.7.RELEASE/spring-beans-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-beans/4.2.7.RELEASE/spring-beans-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-context:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-context/4.2.7.RELEASE/spring-context-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-context/4.2.7.RELEASE/spring-context-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-context/4.2.7.RELEASE/spring-context-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-core:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-core/4.2.7.RELEASE/spring-core-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-core/4.2.7.RELEASE/spring-core-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-core/4.2.7.RELEASE/spring-core-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-expression:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-expression/4.2.7.RELEASE/spring-expression-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-expression/4.2.7.RELEASE/spring-expression-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-expression/4.2.7.RELEASE/spring-expression-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-jdbc:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-jdbc/4.2.7.RELEASE/spring-jdbc-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-jdbc/4.2.7.RELEASE/spring-jdbc-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-jdbc/4.2.7.RELEASE/spring-jdbc-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-orm:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-orm/4.2.7.RELEASE/spring-orm-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-orm/4.2.7.RELEASE/spring-orm-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-orm/4.2.7.RELEASE/spring-orm-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Maven: org.springframework:spring-tx:4.2.7.RELEASE">
3 + <CLASSES>
4 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-tx/4.2.7.RELEASE/spring-tx-4.2.7.RELEASE.jar!/" />
5 + </CLASSES>
6 + <JAVADOC>
7 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-tx/4.2.7.RELEASE/spring-tx-4.2.7.RELEASE-javadoc.jar!/" />
8 + </JAVADOC>
9 + <SOURCES>
10 + <root url="jar://$MAVEN_REPOSITORY$/org/springframework/spring-tx/4.2.7.RELEASE/spring-tx-4.2.7.RELEASE-sources.jar!/" />
11 + </SOURCES>
12 + </library>
13 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="Mojarra-1.2">
3 + <CLASSES>
4 + <root url="jar://$PROJECT_DIR$/lib/jstl-1.1.0.jar!/" />
5 + <root url="jar://$PROJECT_DIR$/lib/jsf-api.jar!/" />
6 + <root url="jar://$PROJECT_DIR$/lib/jsf-impl.jar!/" />
7 + </CLASSES>
8 + <JAVADOC />
9 + <SOURCES />
10 + </library>
11 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="EntryPointsManager">
4 + <entry_points version="2.0" />
5 + </component>
6 + <component name="FrameworkDetectionExcludesConfiguration">
7 + <file type="web" url="file://$PROJECT_DIR$" />
8 + </component>
9 + <component name="MavenProjectsManager">
10 + <option name="originalFiles">
11 + <list>
12 + <option value="$PROJECT_DIR$/pom.xml" />
13 + </list>
14 + </option>
15 + </component>
16 + <component name="ProjectLevelVcsManager" settingsEditedManually="false">
17 + <OptionsSetting value="true" id="Add" />
18 + <OptionsSetting value="true" id="Remove" />
19 + <OptionsSetting value="true" id="Checkout" />
20 + <OptionsSetting value="true" id="Update" />
21 + <OptionsSetting value="true" id="Status" />
22 + <OptionsSetting value="true" id="Edit" />
23 + <ConfirmationsSetting value="0" id="Add" />
24 + <ConfirmationsSetting value="0" id="Remove" />
25 + </component>
26 + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
27 + <output url="file://$PROJECT_DIR$/classes" />
28 + </component>
29 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="ProjectModuleManager">
4 + <modules>
5 + <module fileurl="file://$PROJECT_DIR$/grogEE.iml" filepath="$PROJECT_DIR$/grogEE.iml" />
6 + </modules>
7 + </component>
8 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="Palette2">
4 + <group name="Swing">
5 + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6 + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7 + </item>
8 + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9 + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10 + </item>
11 + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12 + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13 + </item>
14 + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15 + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16 + </item>
17 + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18 + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19 + <initial-values>
20 + <property name="text" value="Button" />
21 + </initial-values>
22 + </item>
23 + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24 + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25 + <initial-values>
26 + <property name="text" value="RadioButton" />
27 + </initial-values>
28 + </item>
29 + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30 + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31 + <initial-values>
32 + <property name="text" value="CheckBox" />
33 + </initial-values>
34 + </item>
35 + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36 + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37 + <initial-values>
38 + <property name="text" value="Label" />
39 + </initial-values>
40 + </item>
41 + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43 + <preferred-size width="150" height="-1" />
44 + </default-constraints>
45 + </item>
46 + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48 + <preferred-size width="150" height="-1" />
49 + </default-constraints>
50 + </item>
51 + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53 + <preferred-size width="150" height="-1" />
54 + </default-constraints>
55 + </item>
56 + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58 + <preferred-size width="150" height="50" />
59 + </default-constraints>
60 + </item>
61 + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63 + <preferred-size width="150" height="50" />
64 + </default-constraints>
65 + </item>
66 + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68 + <preferred-size width="150" height="50" />
69 + </default-constraints>
70 + </item>
71 + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72 + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73 + </item>
74 + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76 + <preferred-size width="150" height="50" />
77 + </default-constraints>
78 + </item>
79 + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80 + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81 + <preferred-size width="150" height="50" />
82 + </default-constraints>
83 + </item>
84 + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86 + <preferred-size width="150" height="50" />
87 + </default-constraints>
88 + </item>
89 + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90 + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91 + <preferred-size width="200" height="200" />
92 + </default-constraints>
93 + </item>
94 + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95 + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96 + <preferred-size width="200" height="200" />
97 + </default-constraints>
98 + </item>
99 + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101 + </item>
102 + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104 + </item>
105 + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106 + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107 + </item>
108 + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110 + </item>
111 + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112 + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113 + <preferred-size width="-1" height="20" />
114 + </default-constraints>
115 + </item>
116 + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117 + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118 + </item>
119 + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120 + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121 + </item>
122 + </group>
123 + </component>
124 +</project>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="VcsDirectoryMappings">
4 + <mapping directory="" vcs="" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
This diff is collapsed. Click to expand it.
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3 + <component name="FacetManager">
4 + <facet type="web" name="Web">
5 + <configuration>
6 + <webroots>
7 + <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
8 + </webroots>
9 + <sourceRoots>
10 + <root url="file://$MODULE_DIR$/src/main/java" />
11 + <root url="file://$MODULE_DIR$/src/main/resources" />
12 + </sourceRoots>
13 + </configuration>
14 + </facet>
15 + <facet type="jpa" name="JPA">
16 + <configuration>
17 + <setting name="validation-enabled" value="true" />
18 + <setting name="provider-name" value="" />
19 + <datasource-mapping>
20 + <factory-entry name="book-pu" />
21 + </datasource-mapping>
22 + <deploymentDescriptor name="persistence.xml" url="file://$MODULE_DIR$/src/main/resources/META-INF/persistence.xml" />
23 + </configuration>
24 + </facet>
25 + </component>
26 + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
27 + <output url="file://$MODULE_DIR$/target/classes" />
28 + <output-test url="file://$MODULE_DIR$/target/test-classes" />
29 + <content url="file://$MODULE_DIR$">
30 + <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
31 + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
32 + <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
33 + <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
34 + <excludeFolder url="file://$MODULE_DIR$/target" />
35 + </content>
36 + <orderEntry type="inheritedJdk" />
37 + <orderEntry type="sourceFolder" forTests="false" />
38 + <orderEntry type="library" scope="TEST" name="Mojarra-1.2" level="project" />
39 + <orderEntry type="library" scope="PROVIDED" name="Maven: org.apache.tomee:javaee-api:7.0" level="project" />
40 + <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.21" level="project" />
41 + <orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.1.7" level="project" />
42 + <orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.1.7" level="project" />
43 + <orderEntry type="library" name="Maven: com.h2database:h2:1.4.192" level="project" />
44 + <orderEntry type="library" name="Maven: org.springframework.data:spring-data-jpa:1.9.4.RELEASE" level="project" />
45 + <orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:1.11.4.RELEASE" level="project" />
46 + <orderEntry type="library" name="Maven: org.springframework:spring-orm:4.2.7.RELEASE" level="project" />
47 + <orderEntry type="library" name="Maven: org.springframework:spring-jdbc:4.2.7.RELEASE" level="project" />
48 + <orderEntry type="library" name="Maven: org.springframework:spring-context:4.2.7.RELEASE" level="project" />
49 + <orderEntry type="library" name="Maven: org.springframework:spring-expression:4.2.7.RELEASE" level="project" />
50 + <orderEntry type="library" name="Maven: org.springframework:spring-aop:4.2.7.RELEASE" level="project" />
51 + <orderEntry type="library" name="Maven: aopalliance:aopalliance:1.0" level="project" />
52 + <orderEntry type="library" name="Maven: org.springframework:spring-tx:4.2.7.RELEASE" level="project" />
53 + <orderEntry type="library" name="Maven: org.springframework:spring-beans:4.2.7.RELEASE" level="project" />
54 + <orderEntry type="library" name="Maven: org.springframework:spring-core:4.2.7.RELEASE" level="project" />
55 + <orderEntry type="library" name="Maven: org.aspectj:aspectjrt:1.8.9" level="project" />
56 + <orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:jcl-over-slf4j:1.7.21" level="project" />
57 + <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
58 + <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
59 + <orderEntry type="library" scope="TEST" name="Maven: org.mockito:mockito-core:1.10.19" level="project" />
60 + <orderEntry type="library" scope="TEST" name="Maven: org.objenesis:objenesis:2.1" level="project" />
61 + <orderEntry type="library" scope="TEST" name="Maven: org.assertj:assertj-core:1.6.1" level="project" />
62 + <orderEntry type="library" scope="TEST" name="Maven: org.apache.openjpa:openjpa:2.4.1" level="project" />
63 + <orderEntry type="library" scope="TEST" name="Maven: commons-lang:commons-lang:2.6" level="project" />
64 + <orderEntry type="library" scope="TEST" name="Maven: commons-collections:commons-collections:3.2.2" level="project" />
65 + <orderEntry type="library" scope="TEST" name="Maven: net.sourceforge.serp:serp:1.15.1" level="project" />
66 + <orderEntry type="library" scope="TEST" name="Maven: org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1" level="project" />
67 + <orderEntry type="library" scope="TEST" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1" level="project" />
68 + <orderEntry type="library" scope="TEST" name="Maven: commons-pool:commons-pool:1.6" level="project" />
69 + <orderEntry type="library" scope="TEST" name="Maven: org.apache.xbean:xbean-asm5-shaded:3.17" level="project" />
70 + <orderEntry type="library" scope="TEST" name="Maven: org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.1" level="project" />
71 + </component>
72 +</module>
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4 + <modelVersion>4.0.0</modelVersion>
5 +
6 + <groupId>org.legrog</groupId>
7 + <artifactId>grogEE</artifactId>
8 + <version>1.0-SNAPSHOT</version>
9 + <packaging>war</packaging>
10 + <name>grogEE TomEE Webapp</name>
11 + <url>http://tomee.apache.org</url>
12 +
13 + <properties>
14 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15 + <assertj-core.version>1.6.1</assertj-core.version>
16 + <openjpa.version>2.4.1</openjpa.version>
17 + </properties>
18 +
19 + <dependencyManagement>
20 + <dependencies>
21 + <dependency>
22 + <groupId>io.spring.platform</groupId>
23 + <artifactId>platform-bom</artifactId>
24 + <version>2.0.7.RELEASE</version>
25 + <type>pom</type>
26 + <scope>import</scope>
27 + </dependency>
28 + </dependencies>
29 + </dependencyManagement>
30 +
31 + <dependencies>
32 +
33 + <!-- **** FRAMEWORK : JSF + CDI **** -->
34 +
35 + <dependency>
36 + <groupId>org.apache.tomee</groupId>
37 + <artifactId>javaee-api</artifactId>
38 + <version>7.0</version>
39 + <scope>provided</scope>
40 + </dependency>
41 +
42 +
43 + <!-- **** TOOLS : LOGS + UTILS **** -->
44 + <dependency>
45 + <groupId>org.slf4j</groupId>
46 + <artifactId>slf4j-api</artifactId>
47 + </dependency>
48 +
49 + <dependency>
50 + <groupId>ch.qos.logback</groupId>
51 + <artifactId>logback-classic</artifactId>
52 + </dependency>
53 +
54 +
55 + <!-- **** DATA MANAGEMENT **** -->
56 +
57 + <dependency>
58 + <groupId>com.h2database</groupId>
59 + <artifactId>h2</artifactId>
60 + </dependency>
61 +
62 + <dependency>
63 + <groupId>org.springframework.data</groupId>
64 + <artifactId>spring-data-jpa</artifactId>
65 + </dependency>
66 +
67 +
68 + <!-- **** TEST SCOPE **** -->
69 +
70 +
71 + <dependency>
72 + <groupId>junit</groupId>
73 + <artifactId>junit</artifactId>
74 + <scope>test</scope>
75 + </dependency>
76 +
77 + <dependency>
78 + <groupId>org.mockito</groupId>
79 + <artifactId>mockito-core</artifactId>
80 + <scope>test</scope>
81 + </dependency>
82 +
83 + <dependency>
84 + <groupId>org.assertj</groupId>
85 + <artifactId>assertj-core</artifactId>
86 + <version>${assertj-core.version}</version>
87 + <scope>test</scope>
88 + </dependency>
89 +
90 + <dependency>
91 + <groupId>org.apache.openjpa</groupId>
92 + <artifactId>openjpa</artifactId>
93 + <version>${openjpa.version}</version>
94 + <scope>test</scope>
95 + </dependency>
96 +
97 + <!-- to test with TomEE and Arquillian
98 + <dependency>
99 + <groupId>org.apache.tomee</groupId>
100 + <artifactId>arquillian-tomee-remote</artifactId>
101 + <version>7.0.1</version>
102 + <scope>test</scope>
103 + </dependency>
104 + <dependency>
105 + <groupId>org.jboss.arquillian.junit</groupId>
106 + <artifactId>arquillian-junit-container</artifactId>
107 + <version>1.1.10.Final</version>
108 + <scope>test</scope>
109 + </dependency>
110 + <dependency>
111 + <groupId>junit</groupId>
112 + <artifactId>junit</artifactId>
113 + <version>4.12</version>
114 + <scope>test</scope>
115 + </dependency>
116 + -->
117 +
118 + <!-- to test with OpenEJB embedded and Arquillian
119 + <dependency>
120 + <groupId>org.apache.tomee</groupId>
121 + <artifactId>arquillian-openejb-embedded</artifactId>
122 + <version>{project.version}</version>
123 + <scope>test</scope>
124 + </dependency>
125 + <dependency>
126 + <groupId>org.jboss.arquillian.junit</groupId>
127 + <artifactId>arquillian-junit-container</artifactId>
128 + <version>1.1.10.Final</version>
129 + <scope>test</scope>
130 + </dependency>
131 + <dependency>
132 + <groupId>junit</groupId>
133 + <artifactId>junit</artifactId>
134 + <version>4.12</version>
135 + <scope>test</scope>
136 + </dependency>
137 + -->
138 + </dependencies>
139 +
140 + <build>
141 + <plugins>
142 + <plugin>
143 + <groupId>org.apache.maven.plugins</groupId>
144 + <artifactId>maven-compiler-plugin</artifactId>
145 + </plugin>
146 + <plugin>
147 + <groupId>org.apache.maven.plugins</groupId>
148 + <artifactId>maven-surefire-plugin</artifactId>
149 + <version>2.19.1</version>
150 + </plugin>
151 + <plugin>
152 + <groupId>org.apache.maven.plugins</groupId>
153 + <artifactId>maven-war-plugin</artifactId>
154 + <version>2.6</version>
155 + <configuration>
156 + <failOnMissingWebXml>false</failOnMissingWebXml>
157 + </configuration>
158 + </plugin>
159 + <plugin>
160 + <groupId>org.apache.tomee.maven</groupId>
161 + <artifactId>tomee-maven-plugin</artifactId>
162 + <version>7.0.1</version>
163 + <configuration>
164 + <context>ROOT</context>
165 + </configuration>
166 + </plugin>
167 + <plugin>
168 + <groupId>org.apache.openjpa</groupId>
169 + <artifactId>openjpa-maven-plugin</artifactId>
170 + <version>${openjpa.version}</version>
171 + <configuration>
172 + <includes>**/entities/*.class</includes>
173 + <excludes>**/entities/XML*.class</excludes>
174 + <addDefaultConstructor>true</addDefaultConstructor>
175 + <enforcePropertyRestrictions>true</enforcePropertyRestrictions>
176 + </configuration>
177 + <executions>
178 + <execution>
179 + <id>enhancer</id>
180 + <phase>process-classes</phase>
181 + <goals>
182 + <goal>enhance</goal>
183 + </goals>
184 + </execution>
185 + </executions>
186 + <dependencies>
187 + <dependency>
188 + <groupId>org.apache.openjpa</groupId>
189 + <artifactId>openjpa</artifactId>
190 + <!-- set the version to be the same as the level in your runtime -->
191 + <version>${openjpa.version}</version>
192 + </dependency>
193 + </dependencies>
194 + </plugin>
195 + </plugins>
196 + </build>
197 +
198 + <repositories>
199 + <repository>
200 + <id>apache-snapshot</id>
201 + <name>Apache Snapshot Repository</name>
202 + <url>https://repository.apache.org/content/groups/snapshots/</url>
203 + </repository>
204 + </repositories>
205 +
206 +</project>
1 +package org.legrog.application;
2 +
3 +import org.legrog.entities.Book;
4 +
5 +import java.util.List;
6 +
7 +/**
8 + * Created by jai on 27/08/16.
9 + */
10 +public interface BookService {
11 + void addBook(Book book);
12 +
13 + List<Book> getAllBooks();
14 +}
1 +/*
2 + * Licensed to the Apache Software Foundation (ASF) under one or more
3 + * contributor license agreements. See the NOTICE file distributed with
4 + * this work for additional information regarding copyright ownership.
5 + * The ASF licenses this file to You under the Apache License, Version 2.0
6 + * (the "License"); you may not use this file except in compliance with
7 + * the License. You may obtain a copy of the License at
8 + *
9 + * http://www.apache.org/licenses/LICENSE-2.0
10 + *
11 + * Unless required by applicable law or agreed to in writing, software
12 + * distributed under the License is distributed on an "AS IS" BASIS,
13 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 + * See the License for the specific language governing permissions and
15 + * limitations under the License.
16 + */
17 +package org.legrog.application;
18 +
19 +import org.legrog.entities.Book;
20 +import org.slf4j.Logger;
21 +import org.slf4j.LoggerFactory;
22 +
23 +import javax.ejb.Stateless;
24 +import javax.enterprise.inject.Alternative;
25 +import javax.inject.Inject;
26 +import javax.persistence.EntityManager;
27 +import javax.persistence.PersistenceContext;
28 +import javax.persistence.criteria.CriteriaQuery;
29 +import java.util.List;
30 +
31 +@Stateless @Alternative
32 +public class BookServiceOld implements BookService{
33 +
34 + Logger logger = LoggerFactory.getLogger(getClass());
35 +
36 + @Inject
37 + private EntityManager entityManager;
38 +
39 + public void addBook(Book book)
40 + {
41 + logger.debug("old one");
42 + entityManager.persist(book);
43 + }
44 +
45 +
46 + public List<Book> getAllBooks()
47 + {
48 + CriteriaQuery<Book> cq = entityManager.getCriteriaBuilder().createQuery(Book.class);
49 + cq.select(cq.from(Book.class));
50 + return entityManager.createQuery(cq).getResultList();
51 + }
52 +
53 + public BookServiceOld() {
54 + }
55 +
56 + // package only constructor dedicated to injection
57 + BookServiceOld(EntityManager entityManager) {
58 + this.entityManager = entityManager;
59 + }
60 +}
1 +package org.legrog.application;
2 +
3 +
4 +import org.legrog.entities.Book;
5 +import org.legrog.entities.BookRepository;
6 +import org.slf4j.Logger;
7 +import org.slf4j.LoggerFactory;
8 +
9 +import javax.ejb.Stateless;
10 +import javax.enterprise.inject.Alternative;
11 +import javax.inject.Inject;
12 +import java.util.List;
13 +
14 +
15 +@Stateless
16 +public class BookServiceSpring implements BookService {
17 +
18 + Logger logger = LoggerFactory.getLogger(getClass());
19 +
20 + @Inject
21 + BookRepository bookRepository;
22 +
23 + public void addBook(Book book) {
24 + logger.debug("spring one");
25 + bookRepository.save(book);
26 + }
27 +
28 + public List<Book> getAllBooks() {
29 + return bookRepository.findAll();
30 + }
31 +}
1 +package org.legrog.configuration;
2 +
3 +import javax.enterprise.context.RequestScoped;
4 +import javax.enterprise.inject.Produces;
5 +import javax.persistence.EntityManager;
6 +import javax.persistence.PersistenceContext;
7 +
8 +
9 +public class JpaConfiguration {
10 +
11 + @Produces
12 + @RequestScoped
13 + @PersistenceContext(unitName = "book-pu")
14 + public EntityManager entityManager;
15 +
16 +}
1 +/*
2 + * Licensed to the Apache Software Foundation (ASF) under one or more
3 + * contributor license agreements. See the NOTICE file distributed with
4 + * this work for additional information regarding copyright ownership.
5 + * The ASF licenses this file to You under the Apache License, Version 2.0
6 + * (the "License"); you may not use this file except in compliance with
7 + * the License. You may obtain a copy of the License at
8 + *
9 + * http://www.apache.org/licenses/LICENSE-2.0
10 + *
11 + * Unless required by applicable law or agreed to in writing, software
12 + * distributed under the License is distributed on an "AS IS" BASIS,
13 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 + * See the License for the specific language governing permissions and
15 + * limitations under the License.
16 + */
17 +package org.legrog.entities;
18 +
19 +import javax.persistence.*;
20 +
21 +@Entity
22 +public class Book {
23 +
24 + @Id
25 + @GeneratedValue(strategy = GenerationType.AUTO)
26 + private int bookId;
27 + private String bookTitle;
28 +
29 + public int getBookId() {
30 + return bookId;
31 + }
32 +
33 + public void setBookId(int bookId) {
34 + this.bookId = bookId;
35 + }
36 +
37 + public String getBookTitle() {
38 + return bookTitle;
39 + }
40 +
41 + public void setBookTitle(String bookName) {
42 + this.bookTitle = bookName;
43 + }
44 +
45 + @Override
46 + public String toString() {
47 + return "Book{" +
48 + "bookId=" + bookId +
49 + ", bookTitle='" + bookTitle + '\'' +
50 + '}';
51 + }
52 +}
53 +
1 +package org.legrog.entities;
2 +
3 +import org.springframework.data.jpa.repository.JpaRepository;
4 +
5 +
6 +public interface BookRepository extends JpaRepository<Book, Integer> {
7 +}
1 +/*
2 + * Licensed to the Apache Software Foundation (ASF) under one or more
3 + * contributor license agreements. See the NOTICE file distributed with
4 + * this work for additional information regarding copyright ownership.
5 + * The ASF licenses this file to You under the Apache License, Version 2.0
6 + * (the "License"); you may not use this file except in compliance with
7 + * the License. You may obtain a copy of the License at
8 + *
9 + * http://www.apache.org/licenses/LICENSE-2.0
10 + *
11 + * Unless required by applicable law or agreed to in writing, software
12 + * distributed under the License is distributed on an "AS IS" BASIS,
13 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 + * See the License for the specific language governing permissions and
15 + * limitations under the License.
16 + */
17 +package org.legrog.presentation;
18 +
19 +import org.legrog.application.BookService;
20 +import org.legrog.entities.Book;
21 +
22 +import javax.enterprise.context.RequestScoped;
23 +import javax.inject.Inject;
24 +import javax.inject.Named;
25 +import java.util.List;
26 +
27 +@Named
28 +@RequestScoped
29 +public class BookBean {
30 +
31 + @Inject
32 + private BookService bookServiceSpring;
33 +
34 + private List<Book> booksAvailable;
35 + private String bookTitle;
36 +
37 + public String getBookTitle() {
38 + return bookTitle;
39 + }
40 +
41 + public void setBookTitle(String bookTitle) {
42 + this.bookTitle = bookTitle;
43 + }
44 +
45 + public List<Book> getBooksAvailable() {
46 + return booksAvailable;
47 + }
48 +
49 + public void setBooksAvailable(List<Book> booksAvailable) {
50 + this.booksAvailable = booksAvailable;
51 + }
52 +
53 + public String fetchBooks()
54 + {
55 + booksAvailable= bookServiceSpring.getAllBooks();
56 + return "success";
57 + }
58 +
59 + public String add()
60 + {
61 + Book book = new Book();
62 + book.setBookTitle(bookTitle);
63 + bookServiceSpring.addBook(book);
64 + return "success";
65 + }
66 +}
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 +
4 + Licensed to the Apache Software Foundation (ASF) under one or more
5 + contributor license agreements. See the NOTICE file distributed with
6 + this work for additional information regarding copyright ownership.
7 + The ASF licenses this file to You under the Apache License, Version 2.0
8 + (the "License"); you may not use this file except in compliance with
9 + the License. You may obtain a copy of the License at
10 +
11 + http://www.apache.org/licenses/LICENSE-2.0
12 +
13 + Unless required by applicable law or agreed to in writing, software
14 + distributed under the License is distributed on an "AS IS" BASIS,
15 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 + See the License for the specific language governing permissions and
17 + limitations under the License.
18 +-->
19 +<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence"
20 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
22 + <persistence-unit name="book-pu" transaction-type="JTA">
23 + <jta-data-source>bookDatabase</jta-data-source>
24 + <exclude-unlisted-classes>false</exclude-unlisted-classes>
25 + <properties>
26 + <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
27 + </properties>
28 + </persistence-unit>
29 +
30 +</persistence>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 + Licensed to the Apache Software Foundation (ASF) under one
4 + or more contributor license agreements. See the NOTICE file
5 + distributed with this work for additional information
6 + regarding copyright ownership. The ASF licenses this file
7 + to you under the Apache License, Version 2.0 (the
8 + "License"); you may not use this file except in compliance
9 + with the License. You may obtain a copy of the License at
10 +
11 + http://www.apache.org/licenses/LICENSE-2.0
12 +
13 + Unless required by applicable law or agreed to in writing,
14 + software distributed under the License is distributed on an
15 + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 + KIND, either express or implied. See the License for the
17 + specific language governing permissions and limitations
18 + under the License.
19 +-->
20 +<beans xmlns="http://java.sun.com/xml/ns/javaee"
21 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" />
1 +<?xml version="1.0"?>
2 +<!--
3 + * Licensed to the Apache Software Foundation (ASF) under one
4 + * or more contributor license agreements. See the NOTICE file
5 + * distributed with this work for additional information
6 + * regarding copyright ownership. The ASF licenses this file
7 + * to you under the Apache License, Version 2.0 (the
8 + * "License"); you may not use this file except in compliance
9 + * with the License. You may obtain a copy of the License at
10 + *
11 + * http://www.apache.org/licenses/LICENSE-2.0
12 + *
13 + * Unless required by applicable law or agreed to in writing,
14 + * software distributed under the License is distributed on an
15 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 + * KIND, either express or implied. See the License for the
17 + * specific language governing permissions and limitations
18 + * under the License.
19 +-->
20 +
21 +<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
22 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23 + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
24 + http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
25 + version="2.0">
26 +
27 + <navigation-rule>
28 + <from-view-id>/book.xhtml</from-view-id>
29 + <navigation-case>
30 + <from-outcome>success</from-outcome>
31 + <to-view-id>/result.xhtml</to-view-id>
32 + </navigation-case>
33 + </navigation-rule>
34 +
35 + <navigation-rule>
36 + <from-view-id>/result.xhtml</from-view-id>
37 + <navigation-case>
38 + <from-outcome>back</from-outcome>
39 + <to-view-id>/book.xhtml</to-view-id>
40 + </navigation-case>
41 + </navigation-rule>
42 +</faces-config>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0"?>
2 +<tomee>
3 + <Resource id="bookDatabase" type="javax.sql.DataSource">
4 + JdbcDriver = org.h2.Driver
5 + JdbcUrl = jdbc:h2:mem:test
6 + UserName = sa
7 + JtaManaged= true
8 + </Resource>
9 +</tomee>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 +* Licensed to the Apache Software Foundation (ASF) under one
4 +* or more contributor license agreements. See the NOTICE file
5 +* distributed with this work for additional information
6 +* regarding copyright ownership. The ASF licenses this file
7 +* to you under the Apache License, Version 2.0 (the
8 +* "License"); you may not use this file except in compliance
9 +* with the License. You may obtain a copy of the License at
10 +*
11 +* http://www.apache.org/licenses/LICENSE-2.0
12 +*
13 +* Unless required by applicable law or agreed to in writing,
14 +* software distributed under the License is distributed on an
15 +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 +* KIND, either express or implied. See the License for the
17 +* specific language governing permissions and limitations
18 +* under the License.
19 +-->
20 +
21 +
22 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24 +<html xmlns="http://www.w3.org/1999/xhtml"
25 + xmlns:f="http://java.sun.com/jsf/core"
26 + xmlns:h="http://java.sun.com/jsf/html">
27 +
28 +
29 +<h:body bgcolor="white">
30 + <f:view>
31 + <h:form>
32 + <h:panelGrid columns="2">
33 + <h:outputText value='Enter book title'/>
34 + <h:inputText value='#{bookBean.bookTitle}'/>
35 + <h:outputText value='Add'/>
36 + <h:commandButton action="#{bookBean.add}" value="Add"/>
37 + </h:panelGrid>
38 + </h:form>
39 + </f:view>
40 +</h:body>
41 +</html>
1 +<!--
2 +* Licensed to the Apache Software Foundation (ASF) under one
3 +* or more contributor license agreements. See the NOTICE file
4 +* distributed with this work for additional information
5 +* regarding copyright ownership. The ASF licenses this file
6 +* to you under the Apache License, Version 2.0 (the
7 +* "License"); you may not use this file except in compliance
8 +* with the License. You may obtain a copy of the License at
9 +*
10 +* http://www.apache.org/licenses/LICENSE-2.0
11 +*
12 +* Unless required by applicable law or agreed to in writing,
13 +* software distributed under the License is distributed on an
14 +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 +* KIND, either express or implied. See the License for the
16 +* specific language governing permissions and limitations
17 +* under the License.
18 +-->
19 +<%@ page session="false" %>
20 +<%
21 + response.sendRedirect("book.jsf");
22 +%>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<!--
3 +* Licensed to the Apache Software Foundation (ASF) under one
4 +* or more contributor license agreements. See the NOTICE file
5 +* distributed with this work for additional information
6 +* regarding copyright ownership. The ASF licenses this file
7 +* to you under the Apache License, Version 2.0 (the
8 +* "License"); you may not use this file except in compliance
9 +* with the License. You may obtain a copy of the License at
10 +*
11 +* http://www.apache.org/licenses/LICENSE-2.0
12 +*
13 +* Unless required by applicable law or agreed to in writing,
14 +* software distributed under the License is distributed on an
15 +* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 +* KIND, either express or implied. See the License for the
17 +* specific language governing permissions and limitations
18 +* under the License.
19 +-->
20 +
21 +
22 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
23 + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
24 +
25 +<html xmlns="http://www.w3.org/1999/xhtml"
26 + xmlns:f="http://xmlns.jcp.org/jsf/core"
27 + xmlns:h="http://xmlns.jcp.org/jsf/html"
28 + xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
29 +
30 +<h:body>
31 + <f:view>
32 + <h:form id="mainForm">
33 + <h2>Book Added !</h2>
34 + <h:commandLink action="back">
35 + <h:outputText value="Add more books"/>
36 + </h:commandLink>
37 +
38 +
39 + <h:commandButton action="#{bookBean.fetchBooks}" value="View books present"/>
40 +
41 + <br/>
42 + <ui:repeat value="#{bookBean.booksAvailable}" var="book">
43 + #{book.bookTitle} <br/>
44 + </ui:repeat>
45 +
46 + </h:form>
47 + </f:view>
48 +</h:body>
49 +</html>
...\ No newline at end of file ...\ No newline at end of file
1 +package org.legrog.application;
2 +
3 +import org.junit.Before;
4 +import org.junit.Test;
5 +import org.junit.runner.RunWith;
6 +import org.legrog.entities.Book;
7 +import org.mockito.Answers;
8 +import org.mockito.Mock;
9 +import org.mockito.Mockito;
10 +import org.mockito.runners.MockitoJUnitRunner;
11 +
12 +import javax.persistence.EntityManager;
13 +import javax.persistence.criteria.CriteriaQuery;
14 +import java.util.Arrays;
15 +import java.util.List;
16 +
17 +import static org.assertj.core.api.Assertions.assertThat;
18 +
19 +
20 +@RunWith(MockitoJUnitRunner.class)
21 +public class BookServiceOldTest {
22 +
23 + @Mock(answer = Answers.RETURNS_DEEP_STUBS)
24 + private EntityManager entityManager;
25 +
26 + private BookServiceOld bookServiceOld;
27 +
28 + @Before
29 + public void setUp() throws Exception {
30 + bookServiceOld = new BookServiceOld(entityManager);
31 + }
32 +
33 + @Test
34 + public void testAddBook() throws Exception {
35 + Book book = new Book();
36 + bookServiceOld.addBook(book);
37 + Mockito.verify(entityManager).persist(book);
38 + }
39 +
40 +
41 + @Test
42 + public void testAllBooks() throws Exception {
43 +
44 + Book book = new Book();
45 + book.setBookId(0);
46 +
47 + CriteriaQuery<Book> cq = Mockito.mock(CriteriaQuery.class);
48 + Mockito.when(entityManager.getCriteriaBuilder().createQuery(Book.class))
49 + .thenReturn(cq);
50 + Mockito.when(entityManager.createQuery(cq).getResultList())
51 + .thenReturn(Arrays.asList(book));
52 +
53 + List<Book> allBooks = bookServiceOld.getAllBooks();
54 +
55 + assertThat(allBooks).as("book list")
56 + .hasSize(1)
57 + .contains(book);
58 +
59 + }
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 +<!--
3 +
4 + Licensed to the Apache Software Foundation (ASF) under one or more
5 + contributor license agreements. See the NOTICE file distributed with
6 + this work for additional information regarding copyright ownership.
7 + The ASF licenses this file to You under the Apache License, Version 2.0
8 + (the "License"); you may not use this file except in compliance with
9 + the License. You may obtain a copy of the License at
10 +
11 + http://www.apache.org/licenses/LICENSE-2.0
12 +
13 + Unless required by applicable law or agreed to in writing, software
14 + distributed under the License is distributed on an "AS IS" BASIS,
15 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 + See the License for the specific language governing permissions and
17 + limitations under the License.
18 +-->
19 +<arquillian
20 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 + xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
22 + <!-- if you decided to use openejb embedded adapter in the pom
23 + <container qualifier="openejb-embedded" default="true">
24 + <configuration>
25 + <property name="properties">
26 + my-datasource = new://Resource?type=DataSource
27 + my-datasource.JdbcUrl = jdbc:hsqldb:mem:my-datasource
28 + my-datasource.UserName = sa
29 + my-datasource.Password =
30 + </property>
31 + </configuration>
32 + </container>
33 + -->
34 + <!-- if you decided to use tomee adapter in the pom
35 + <container qualifier="tomee" default="true">
36 + <configuration>
37 + <property name="httpPort">-1</property>
38 + <property name="stopPort">-1</property>
39 + <property name="ajpPort">-1</property>
40 + <property name="version">${tomee.version}</property>
41 + <property name="dir">target/apache-tomee-remote</property>
42 + <property name="appWorkingDir">target/arquillian-test-working-dir</property>
43 + <property name="properties" />
44 + </configuration>
45 + </container>
46 + -->
47 +</arquillian>