Author: manaRH
Date: 2013-10-14 04:53:38 -0400 (Mon, 14 Oct 2013)
New Revision: 15617
Added:
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components-test.xml
Removed:
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components.xml
Log:
https://issues.jboss.org/browse/WFK2-84 fixed forgotten contact-list renaming of
components.xml to components-test.xml
Copied:
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components-test.xml
(from rev 15616,
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components.xml)
===================================================================
---
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components-test.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components-test.xml 2013-10-14
08:53:38 UTC (rev 15617)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<components
xmlns="http://jboss.org/schema/seam/components"
+
xmlns:core="http://jboss.org/schema/seam/core"
+
xmlns:fwk="http://jboss.org/schema/seam/framework"
+
xmlns:persistence="http://jboss.org/schema/seam/persistence"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation=
+ "http://jboss.org/schema/seam/core
http://jboss.org/schema/seam/core-2.3.xsd
+
http://jboss.org/schema/seam/framework
http://jboss.org/schema/seam/framework-2.3.xsd
+
http://jboss.org/schema/seam/persistence
http://jboss.org/schema/seam/persistence-2.3.xsd
+
http://jboss.org/schema/seam/components
http://jboss.org/schema/seam/components-2.3.xsd">
+
+ <persistence:managed-persistence-context name="entityManager"
+
persistence-unit-jndi-name="java:/contactlistEntityManagerFactory"/>
+
+ <core:init jndi-pattern="${jndiPattern}"/>
+
+ <factory name="contact" value="#{contactHome.instance}"/>
+ <fwk:entity-home name="contactHome"
+ entity-class="org.jboss.seam.example.contactlist.Contact"/>
+
+
+ <factory name="comment" value="#{commentHome.instance}"/>
+ <fwk:entity-home name="commentHome"
+ entity-class="org.jboss.seam.example.contactlist.Comment"
+ new-instance="#{newComment}"/>
+
+ <component name="newComment"
+ class="org.jboss.seam.example.contactlist.Comment">
+ <property name="contact">#{contact}</property>
+ <property name="created">#{currentDatetime}</property>
+ </component>
+
+
+ <fwk:entity-query name="contacts"
+ max-results="5">
+ <fwk:ejbql>select c from Contact c</fwk:ejbql>
+ <fwk:order>lastName</fwk:order>
+ <fwk:restrictions>
+ <value>lower(c.firstName) like lower( concat(
#{exampleContact.firstName}, '%' ) )</value>
+ <value>lower(c.lastName) like lower( concat(
#{exampleContact.lastName}, '%' ) )</value>
+ </fwk:restrictions>
+ </fwk:entity-query>
+
+ <component name="exampleContact"
+ class="org.jboss.seam.example.contactlist.Contact"/>
+
+</components>
Deleted:
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components.xml 2013-10-14
08:24:49 UTC (rev 15616)
+++
branches/enterprise/WFK-2_1/examples/contactlist/contactlist-ejb/src/test/resources/components.xml 2013-10-14
08:53:38 UTC (rev 15617)
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<components
xmlns="http://jboss.org/schema/seam/components"
-
xmlns:core="http://jboss.org/schema/seam/core"
-
xmlns:fwk="http://jboss.org/schema/seam/framework"
-
xmlns:persistence="http://jboss.org/schema/seam/persistence"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation=
- "http://jboss.org/schema/seam/core
http://jboss.org/schema/seam/core-2.3.xsd
-
http://jboss.org/schema/seam/framework
http://jboss.org/schema/seam/framework-2.3.xsd
-
http://jboss.org/schema/seam/persistence
http://jboss.org/schema/seam/persistence-2.3.xsd
-
http://jboss.org/schema/seam/components
http://jboss.org/schema/seam/components-2.3.xsd">
-
- <persistence:managed-persistence-context name="entityManager"
-
persistence-unit-jndi-name="java:/contactlistEntityManagerFactory"/>
-
- <core:init jndi-pattern="${jndiPattern}"/>
-
- <factory name="contact" value="#{contactHome.instance}"/>
- <fwk:entity-home name="contactHome"
- entity-class="org.jboss.seam.example.contactlist.Contact"/>
-
-
- <factory name="comment" value="#{commentHome.instance}"/>
- <fwk:entity-home name="commentHome"
- entity-class="org.jboss.seam.example.contactlist.Comment"
- new-instance="#{newComment}"/>
-
- <component name="newComment"
- class="org.jboss.seam.example.contactlist.Comment">
- <property name="contact">#{contact}</property>
- <property name="created">#{currentDatetime}</property>
- </component>
-
-
- <fwk:entity-query name="contacts"
- max-results="5">
- <fwk:ejbql>select c from Contact c</fwk:ejbql>
- <fwk:order>lastName</fwk:order>
- <fwk:restrictions>
- <value>lower(c.firstName) like lower( concat(
#{exampleContact.firstName}, '%' ) )</value>
- <value>lower(c.lastName) like lower( concat(
#{exampleContact.lastName}, '%' ) )</value>
- </fwk:restrictions>
- </fwk:entity-query>
-
- <component name="exampleContact"
- class="org.jboss.seam.example.contactlist.Contact"/>
-
-</components>