1. opensymphony
  2. osuser

Commits

hani  committed 97e5908

Put commons-logging in the correct place in example app
Specify commons-logging in ejb manifests
Rename Group schema name in GroupEJB to OSGroup, since Group is disallowed in weblogic
Update version of oscore
Remove old unused descriptors

  • Participants
  • Parent commits 0a3ce79
  • Branches default

Comments (0)

Files changed (17)

File build.xml

View file
  • Ignore whitespace
     <property name="src.etc" value="${src}/etc"/>
 
     <property name="propertyset.jar" value="propertyset-1.3-dev.jar"/>
-    <property name="oscore.jar" value="oscore-2.2.1.jar"/>
+    <property name="oscore.jar" value="oscore-2.2.2-18Dec03.jar"/>
+
     <property name="build" value="build"/>
     <property name="build.test" value="${build}/test"/>
     <property name="build.java" value="${build}/java"/>
   </target>
 
   <target name="example" depends="jar">
-    <mkdir dir="${tmp}"/>
+    <mkdir dir="${tmp}/example/lib"/>
     <!-- copies the osuser jar without the version info attached to the jar
          file name, as that is how its referenced in the
          example/META-INF/application.xml file -->
         <include name="prop**"/>
       </fileset>
     </copy>
+    <touch file="${tmp}/example/${oscore.jar}" millis="500"/>
+    <touch file="${tmp}/example/${propertyset.jar}" millis="500"/>
+    <jar jarfile="${tmp}/example/${oscore.jar}" update="true" manifest="${src.etc}/ejb/manifest.txt"/>
+    <jar jarfile="${tmp}/example/${propertyset.jar}" update="true" manifest="${src.etc}/ejb/manifest.txt"/>
+
     <copy todir="${tmp}/example">
       <fileset dir="example">
         <include name="META-INF/**"/>
         <include name="manager/**"/>
       </fileset>
     </copy>
+	  <copy todir="${tmp}/example/lib" file="${lib}/core/commons-logging.jar" />
     <copy todir="${tmp}/example/manager/WEB-INF/lib">
       <fileset dir="${lib}/build/">
         <include name="log4j.jar"/>
       <fileset dir="${lib}/optional/">
         <include name="*.jar"/>
       </fileset>
-      <fileset dir="${lib}/core">
-        <include name="common**"/>
-      </fileset>
     </copy>
     <jar basedir="example/testclient" jarfile="${tmp}/example/testclient.jar" manifest="example/testclient/META-INF/MANIFEST.MF"/>
     <jar basedir="${tmp}/example/manager" jarfile="${tmp}/example/manager.war"/>
-    <copy file="${src.etc}/pramati/pramati-j2ee-server.xml" todir="${tmp}/example/"/>
-    <copy file="${src.etc}/pramati/pramati-or-map.xml" todir="${tmp}/example/"/>
-    <copy file="${src.etc}/pramati/queries.props" todir="${tmp}/example/"/>
     <jar basedir="${tmp}/example" jarfile="${dist}/osuser_example.ear"/>
 
   </target>

File example/META-INF/application.xml

View file
  • Ignore whitespace
-<?xml version="1.0"?>
-<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
-
-<application>
-
-	<display-name>OSUser example app</display-name>
-
-	<module>
-		<ejb>oscore-2.2.1.jar</ejb>
-	</module>
-    <module>
-        <ejb>propertyset-1.1.1.jar</ejb>
-    </module>
-
-	<module>
-		<ejb>osuser.jar</ejb>
-	</module>
-
-<!--
-	removed by mike as castor isn't a client at all?!
-	<module>
-		<java>testclient.jar</java>
-	</module>
-
-	<module>
-		<java>castor-0.9.3.9.jar</java>
-	</module>
--->
-
-	<module>
-		<web>
-			<web-uri>manager.war</web-uri>
-			<context-root>manager</context-root>
-		</web>
-	</module>
-
-    <security-role>
-        <role-name>foobars</role-name>
-    </security-role>
-
-
+<?xml version="1.0"?>
+<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
+
+<application>
+
+	<display-name>OSUser example app</display-name>
+
+	<module>
+		<ejb>oscore-2.2.2-18Dec03.jar</ejb>
+	</module>
+	<module>
+			<ejb>propertyset-1.3-dev.jar</ejb>
+	</module>
+
+	<module>
+		<ejb>osuser.jar</ejb>
+	</module>
+
+<!--
+	removed by mike as castor isn't a client at all?!
+	<module>
+		<java>testclient.jar</java>
+	</module>
+
+	<module>
+		<java>castor-0.9.3.9.jar</java>
+	</module>
+-->
+
+	<module>
+		<web>
+			<web-uri>manager.war</web-uri>
+			<context-root>manager</context-root>
+		</web>
+	</module>
+
+    <security-role>
+        <role-name>foobars</role-name>
+    </security-role>
+
+
 </application>

File example/manager/WEB-INF/weblogic.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Patrick Lightbody (Cisco Systems, Inc.) -->
-
-<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.0//EN" "http://www.bea.com/servers/wls610/dtd/weblogic-web-jar.dtd">
-
-<weblogic-web-app>
-
-	<description>OSUser example app</description>
-
-	<reference-descriptor>
-
-		<ejb-reference-description>
-
-			<ejb-ref-name>ejb/osuser/User</ejb-ref-name>
-
-			<jndi-name>osuser/User</jndi-name>
-
-		</ejb-reference-description>
-
-		<ejb-reference-description>
-
-			<ejb-ref-name>ejb/osuser/Group</ejb-ref-name>
-
-			<jndi-name>osuser/Group</jndi-name>
-
-		</ejb-reference-description>
-
-		<ejb-reference-description>
-
-			<ejb-ref-name>ejb/osuser/Membership</ejb-ref-name>
-
-			<jndi-name>osuser/Membership</jndi-name>
-
-		</ejb-reference-description>
-
-	</reference-descriptor>
-
-        <security-role-assignment>
-            <role-name>foobars</role-name>
-            <principal-name>foobars</principal-name>
-        </security-role-assignment>
-
-
-
-</weblogic-web-app>
-

File lib/core/oscore-2.2.1.jar

  • Ignore whitespace
Binary file removed.

File lib/core/oscore-2.2.2-18Dec03.jar

  • Ignore whitespace
Binary file added.

File src/etc/ejb/ejb-jar.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
-
-<ejb-jar>
-
-   <description>No Description</description>
-   <display-name>Generated by XDoclet</display-name>
-
-   <enterprise-beans>
-
-      <!-- Session Beans -->
-
-     <!--
-       To add session beans that you have deployment descriptor info for, add
-       a file to your merge directory called session-beans.xml that contains
-       the <session></session> markup for those beans.
-     -->
-
-      <!-- Entity Beans -->
-      <entity id="os.Group">
-         <description><![CDATA[Entity bean representing Group.]]></description>
-
-         <ejb-name>os.Group</ejb-name>
-
-         <home>com.opensymphony.user.provider.ejb.entity.GroupHome</home>
-         <remote>com.opensymphony.user.provider.ejb.entity.GroupRemote</remote>
-         <ejb-class>com.opensymphony.user.provider.ejb.entity.GroupCMP</ejb-class>
-         <persistence-type>Container</persistence-type>
-         <prim-key-class>java.lang.Long</prim-key-class>
-         <reentrant>False</reentrant>
-         <cmp-field>
-            <description><![CDATA[Unique primary key of Group.]]></description>
-            <field-name>id</field-name>
-         </cmp-field>
-         <cmp-field>
-            <description><![CDATA[Get name of Group.]]></description>
-            <field-name>name</field-name>
-         </cmp-field>
-         <primkey-field>id</primkey-field>
-
-         <env-entry>
-            <env-entry-name>sequenceName</env-entry-name>
-            <env-entry-type>java.lang.String</env-entry-type>
-            <env-entry-value>OSUEntityEJB</env-entry-value>
-         </env-entry>
-
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.sequence.SequenceGeneratorHome</home>
-            <remote>com.opensymphony.module.sequence.SequenceGenerator</remote>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.propertyset.ejb.PropertyStoreHome</home>
-            <remote>com.opensymphony.module.propertyset.ejb.PropertyStore</remote>
-         </ejb-ref>
-
-      </entity>
-
-      <entity id="os.Membership">
-         <description><![CDATA[Entity bean linking a User to a Group.]]></description>
-
-         <ejb-name>os.Membership</ejb-name>
-
-         <home>com.opensymphony.user.provider.ejb.entity.MembershipHome</home>
-         <remote>com.opensymphony.user.provider.ejb.entity.MembershipRemote</remote>
-         <ejb-class>com.opensymphony.user.provider.ejb.entity.MembershipCMP</ejb-class>
-         <persistence-type>Container</persistence-type>
-         <prim-key-class>java.lang.Long</prim-key-class>
-         <reentrant>False</reentrant>
-         <cmp-field>
-            <description><![CDATA[Unique primary key of Membership.]]></description>
-            <field-name>id</field-name>
-         </cmp-field>
-         <cmp-field>
-            <description><![CDATA[Get User]]></description>
-            <field-name>user</field-name>
-         </cmp-field>
-         <cmp-field>
-            <description><![CDATA[Get Group]]></description>
-            <field-name>group</field-name>
-         </cmp-field>
-         <primkey-field>id</primkey-field>
-
-         <env-entry>
-            <env-entry-name>sequenceName</env-entry-name>
-            <env-entry-type>java.lang.String</env-entry-type>
-            <env-entry-value>MembershipEJB</env-entry-value>
-         </env-entry>
-
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.sequence.SequenceGeneratorHome</home>
-            <remote>com.opensymphony.module.sequence.SequenceGenerator</remote>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.propertyset.ejb.PropertyStoreHome</home>
-            <remote>com.opensymphony.module.propertyset.ejb.PropertyStore</remote>
-         </ejb-ref>
-
-      </entity>
-
-      <entity id="os.User">
-         <description><![CDATA[Entity bean representing User.]]></description>
-
-         <ejb-name>os.User</ejb-name>
-
-         <home>com.opensymphony.user.provider.ejb.entity.UserHome</home>
-         <remote>com.opensymphony.user.provider.ejb.entity.UserRemote</remote>
-         <ejb-class>com.opensymphony.user.provider.ejb.entity.UserCMP</ejb-class>
-         <persistence-type>Container</persistence-type>
-         <prim-key-class>java.lang.Long</prim-key-class>
-         <reentrant>False</reentrant>
-         <cmp-field>
-            <description><![CDATA[Unique primary key of User.]]></description>
-            <field-name>id</field-name>
-         </cmp-field>
-         <cmp-field>
-            <description><![CDATA[Get login name of User.]]></description>
-            <field-name>name</field-name>
-         </cmp-field>
-         <cmp-field>
-            <description><![CDATA[]]></description>
-            <field-name>passwordHash</field-name>
-         </cmp-field>
-         <primkey-field>id</primkey-field>
-
-         <env-entry>
-            <env-entry-name>sequenceName</env-entry-name>
-            <env-entry-type>java.lang.String</env-entry-type>
-            <env-entry-value>OSUEntityEJB</env-entry-value>
-         </env-entry>
-
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.sequence.SequenceGeneratorHome</home>
-            <remote>com.opensymphony.module.sequence.SequenceGenerator</remote>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <ejb-ref-type>Session</ejb-ref-type>
-            <home>com.opensymphony.module.propertyset.ejb.PropertyStoreHome</home>
-            <remote>com.opensymphony.module.propertyset.ejb.PropertyStore</remote>
-         </ejb-ref>
-
-      </entity>
-
-     <!--
-       To add entity beans that you have deployment descriptor info for, add
-       a file to your merge directory called session-beans.xml that contains
-       the <entity></entity> markup for those beans.
-     -->
-
-   </enterprise-beans>
-
-   <!-- Assembly Descriptor -->
-   <assembly-descriptor>
-
-   <!-- finder permissions -->
-
-   <!-- finder permissions -->
-
-   <!-- finder permissions -->
-
-   <!-- transactions -->
-
-   <!-- finder transactions -->
-   </assembly-descriptor>
-
-</ejb-jar>

File src/etc/ejb/manifest.txt

View file
  • Ignore whitespace
+Class-Path: lib/commons-logging.jar oscore-2.2.2-18Dec03.jar
+
+

File src/etc/jboss/jaws.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jaws PUBLIC "-//JBoss//DTD JAWS 2.4//EN" "http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd">
-
-<jaws>
-   <enterprise-beans>
-
-      <entity>
-         <ejb-name>os.Group</ejb-name>
-
-         <cmp-field>
-            <field-name>id</field-name>
-            <column-name>id</column-name>
-
-         </cmp-field>
-         <cmp-field>
-            <field-name>name</field-name>
-            <column-name>name</column-name>
-
-         </cmp-field>
-
-         <finder>
-            <name>findAll</name>
-            <query><![CDATA[1 = 1]]></query>
-            <order>name</order>
-         </finder>
-         <finder>
-            <name>findByName</name>
-            <query><![CDATA[name = {0}]]></query>
-            <order>name</order>
-         </finder>
-
-         <table-name>OSGroup</table-name>
-
-      </entity>
-
-      <entity>
-         <ejb-name>os.Membership</ejb-name>
-
-         <cmp-field>
-            <field-name>group</field-name>
-            <column-name>groupId</column-name>
-
-         </cmp-field>
-         <cmp-field>
-            <field-name>id</field-name>
-            <column-name>id</column-name>
-
-         </cmp-field>
-         <cmp-field>
-            <field-name>user</field-name>
-            <column-name>userId</column-name>
-
-         </cmp-field>
-
-         <finder>
-            <name>findAll</name>
-            <query><![CDATA[1 = 1]]></query>
-            <order>name</order>
-         </finder>
-         <finder>
-            <name>findByUser</name>
-            <query><![CDATA[userId = {0}]]></query>
-            <order>userId</order>
-         </finder>
-         <finder>
-            <name>findByGroup</name>
-            <query><![CDATA[groupId = {0}]]></query>
-            <order>groupId</order>
-         </finder>
-         <finder>
-            <name>findByUserAndGroup</name>
-            <query><![CDATA[userId = {0} AND groupId = {1}]]></query>
-            <order>groupId, userId</order>
-         </finder>
-
-         <table-name>OSMembership</table-name>
-
-      </entity>
-
-      <entity>
-         <ejb-name>os.User</ejb-name>
-
-         <cmp-field>
-            <field-name>id</field-name>
-            <column-name>id</column-name>
-
-         </cmp-field>
-         <cmp-field>
-            <field-name>name</field-name>
-            <column-name>name</column-name>
-
-         </cmp-field>
-         <cmp-field>
-            <field-name>passwordHash</field-name>
-            <column-name>passwordHash</column-name>
-
-         </cmp-field>
-
-         <finder>
-            <name>findAll</name>
-            <query><![CDATA[1 = 1]]></query>
-            <order>name</order>
-         </finder>
-         <finder>
-            <name>findByName</name>
-            <query><![CDATA[name = {0}]]></query>
-            <order>name</order>
-         </finder>
-
-         <table-name>OSUser</table-name>
-
-      </entity>
-
-   </enterprise-beans>
-
-</jaws>

File src/etc/jboss/jboss.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss_2_4.dtd">
-
-<jboss>
-
-   <enterprise-beans>
-
-      <entity>
-         <ejb-name>os.Group</ejb-name>
-         <jndi-name>ejb/osuser/Group</jndi-name>
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <jndi-name>os.Sequence</jndi-name>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <jndi-name>os.PropertyStore</jndi-name>
-         </ejb-ref>
-      </entity>
-      <entity>
-         <ejb-name>os.Membership</ejb-name>
-         <jndi-name>ejb/osuser/Membership</jndi-name>
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <jndi-name>os.Sequence</jndi-name>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <jndi-name>os.PropertyStore</jndi-name>
-         </ejb-ref>
-      </entity>
-      <entity>
-         <ejb-name>os.User</ejb-name>
-         <jndi-name>ejb/osuser/User</jndi-name>
-         <ejb-ref>
-            <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-            <jndi-name>os.Sequence</jndi-name>
-         </ejb-ref>
-         <ejb-ref>
-            <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-            <jndi-name>os.PropertyStore</jndi-name>
-         </ejb-ref>
-      </entity>
-
-   </enterprise-beans>
-
-   <resource-managers>
-   </resource-managers>
-
-</jboss>

File src/etc/jrun/jrun-ejb-jar.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE jrun-ejb-jar PUBLIC "-//Macromedia, Inc.//DTD jrun-ejb-jar 4.0//EN" "http://jrun.macromedia.com/dtds/jrun-ejb-jar.dtd">
-<jrun-ejb-jar>
-    <enterprise-beans>
-    <source>default</source>
-    <entity>
-      <always-dirty>false</always-dirty>
-      <commit-option>B</commit-option>
-      <multiplexing>true</multiplexing>
-      <ejb-name>os.Group</ejb-name>
-      <cluster-home>false</cluster-home>
-      <cluster-object>false</cluster-object>
-      <cache-size>100</cache-size>
-      <jdbc-mappings>
-        <create-table>false</create-table>
-        <delete-table>false</delete-table>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>name</name>
-                <type>VARCHAR</type>
-              </param>
-            </params>
-            <action>INSERT INTO "OSGROUP" (id, name) VALUES (?, ?)</action>
-          </statement>
-          <name>create</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <fields>
-              <field>id</field>
-              <field>name</field>
-            </fields>
-            <action>SELECT id, name FROM "OSGROUP" WHERE id = ?</action>
-          </statement>
-          <name>load</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByPrimaryKey</name>
-          <statement>
-            <action>SELECT id FROM "OSGROUP" WHERE id = ?1</action>
-            <fields>
-              <field>id</field>
-            </fields>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findAll</name>
-          <action>SELECT id FROM "OSGROUP"</action>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByName</name>
-          <statement>
-            <action>SELECT id FROM "OSGROUP" WHERE name = ?1</action>
-            <fields>
-              <field>id</field>
-            </fields>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>name</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>UPDATE "OSGROUP" SET id = ?, name = ? WHERE id = ?</action>
-          </statement>
-          <name>store</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>DELETE FROM "OSGROUP" WHERE id = ?</action>
-          </statement>
-          <name>remove</name>
-        </jdbc-mapping>
-        <table-name>GroupCMPTable</table-name>
-      </jdbc-mappings>
-      <jndi-name>ejb/osuser/Group</jndi-name>
-      <ejb-ref>
-        <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-      <jndi-name>os.SequenceGenerator</jndi-name></ejb-ref>
-    <ejb-ref>
-      <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-    <jndi-name>os.PropertyStore</jndi-name></ejb-ref></entity>
-    <entity>
-      <always-dirty>false</always-dirty>
-      <commit-option>B</commit-option>
-      <multiplexing>true</multiplexing>
-      <ejb-name>os.User</ejb-name>
-      <cluster-home>false</cluster-home>
-      <cluster-object>false</cluster-object>
-      <cache-size>100</cache-size>
-      <jdbc-mappings>
-        <create-table>false</create-table>
-        <delete-table>false</delete-table>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>name</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>passwordHash</name>
-                <type>VARCHAR</type>
-              </param>
-            </params>
-            <action>INSERT INTO "OSUSER" (id, name, passwordHash) VALUES (?, ?, ?)</action>
-          </statement>
-          <name>create</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <fields>
-              <field>id</field>
-              <field>name</field>
-              <field>passwordHash</field>
-            </fields>
-            <action>SELECT id, name, passwordHash FROM "OSUSER" WHERE id = ?</action>
-          </statement>
-          <name>load</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByPrimaryKey</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSUSER" WHERE id = ?1</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findAll</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSUSER"</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByName</name>
-          <statement>
-            <action>SELECT id FROM "OSUSER" WHERE name = ?1</action>
-            <fields>
-              <field>id</field>
-            </fields>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>name</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>passwordHash</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>UPDATE "OSUSER" SET id = ?, name = ?, passwordHash = ? WHERE id = ?</action>
-          </statement>
-          <name>store</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>DELETE FROM "OSUSER" WHERE id = ?</action>
-          </statement>
-          <name>remove</name>
-        </jdbc-mapping>
-        <table-name>UserCMPTable</table-name>
-      </jdbc-mappings>
-      <jndi-name>ejb/osuser/User</jndi-name>
-      <ejb-ref>
-        <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-      <jndi-name>os.SequenceGenerator</jndi-name></ejb-ref>
-    <ejb-ref>
-      <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-    <jndi-name>os.PropertyStore</jndi-name></ejb-ref></entity>
-    <entity>
-      <always-dirty>false</always-dirty>
-      <commit-option>B</commit-option>
-      <multiplexing>true</multiplexing>
-      <ejb-name>os.Membership</ejb-name>
-      <cluster-home>false</cluster-home>
-      <cluster-object>false</cluster-object>
-      <cache-size>100</cache-size>
-      <jdbc-mappings>
-        <create-table>false</create-table>
-        <delete-table>false</delete-table>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>user</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>group</name>
-                <type>VARCHAR</type>
-              </param>
-            </params>
-            <action>INSERT INTO "OSMEMBERSHIP" (id, userId, groupId) VALUES (?, ?, ?)</action>
-          </statement>
-          <name>create</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <fields>
-              <field>id</field>
-              <field>user</field>
-              <field>group</field>
-            </fields>
-            <action>SELECT id, userId, groupId FROM "OSMEMBERSHIP" WHERE id = ?</action>
-          </statement>
-          <name>load</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByPrimaryKey</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSMEMBERSHIP" WHERE id = ?1</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByUser</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSMEMBERSHIP" WHERE userId = ?1</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByGroup</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSMEMBERSHIP" WHERE groupId = ?1</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <name>findByUserAndGroup</name>
-          <statement>
-            <fields>
-              <field>id</field>
-            </fields>
-            <action>SELECT id FROM "OSMEMBERSHIP" WHERE userId = ?1 AND groupId = ?2</action>
-          </statement>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-              <param>
-                <name>user</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>group</name>
-                <type>VARCHAR</type>
-              </param>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>UPDATE "OSMEMBERSHIP" SET id = ?, userId = ?, WHERE id = ?</action>
-          </statement>
-          <name>store</name>
-        </jdbc-mapping>
-        <jdbc-mapping>
-          <statement>
-            <params>
-              <param>
-                <name>id</name>
-                <type>BIGINT</type>
-              </param>
-            </params>
-            <action>DELETE FROM "OSMEMBERSHIP" WHERE id = ?</action>
-          </statement>
-          <name>remove</name>
-        </jdbc-mapping>
-        <table-name>MembershipCMPTable</table-name>
-      </jdbc-mappings>
-      <jndi-name>ejb/osuser/Membership</jndi-name>
-      <ejb-ref>
-        <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-      <jndi-name>os.SequenceGenerator</jndi-name></ejb-ref>
-    <ejb-ref>
-      <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-    <jndi-name>os.PropertyStore</jndi-name></ejb-ref></entity>
-  </enterprise-beans>
-</jrun-ejb-jar>
-

File src/etc/orion/orion-ejb-jar.xml

  • Ignore whitespace
-<?xml version="1.0"?>
-<!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://www.orionserver.com/dtds/orion-ejb-jar.dtd">
-
-<orion-ejb-jar deployment-version="1.5.0">
-
-   <enterprise-beans>
-
-      <!-- Session Beans -->
-
-      <!-- Entity Beans -->
-      <entity-deployment name="os.Group"
-                          location="ejb/osuser/Group"
-                          table="OSGroup"
-                          >
-
-         <primkey-mapping>
-            <cmp-field-mapping
-               name="id"
-               persistence-name="id"
-            >
-
-            </cmp-field-mapping>
-
-         </primkey-mapping>
-
-            <cmp-field-mapping
-               name="name"
-               persistence-name="name"
-            >
-
-            </cmp-field-mapping>
-
-         <finder-method query="1 = 1 order by $name">
-            <method>
-               <ejb-name>os.Group</ejb-name>
-               <method-name>findAll</method-name>
-               <method-params>
-               </method-params>
-            </method>
-         </finder-method>
-         <finder-method query="$name = $1">
-            <method>
-               <ejb-name>os.Group</ejb-name>
-               <method-name>findByName</method-name>
-               <method-params>
-                  <method-param>java.lang.String</method-param>
-               </method-params>
-            </method>
-         </finder-method>
-
-      </entity-deployment>
-      <entity-deployment name="os.Membership"
-                          location="ejb/osuser/Membership"
-                          table="OSMembership"
-                          >
-
-         <primkey-mapping>
-            <cmp-field-mapping
-               name="id"
-               persistence-name="id"
-            >
-
-            </cmp-field-mapping>
-
-         </primkey-mapping>
-
-            <cmp-field-mapping
-               name="user"
-               persistence-name="userId"
-            >
-
-            </cmp-field-mapping>
-
-            <cmp-field-mapping
-               name="group"
-               persistence-name="groupId"
-            >
-
-            </cmp-field-mapping>
-
-         <finder-method query="$user = $1">
-            <method>
-               <ejb-name>os.Membership</ejb-name>
-               <method-name>findByUser</method-name>
-               <method-params>
-                  <method-param>java.lang.String</method-param>
-               </method-params>
-            </method>
-         </finder-method>
-         <finder-method query="$group = $1">
-            <method>
-               <ejb-name>os.Membership</ejb-name>
-               <method-name>findByGroup</method-name>
-               <method-params>
-                  <method-param>java.lang.String</method-param>
-               </method-params>
-            </method>
-         </finder-method>
-         <finder-method query="$user = $1 AND $group = $2">
-            <method>
-               <ejb-name>os.Membership</ejb-name>
-               <method-name>findByUserAndGroup</method-name>
-               <method-params>
-                  <method-param>java.lang.String</method-param>
-                  <method-param>java.lang.String</method-param>
-               </method-params>
-            </method>
-         </finder-method>
-
-      </entity-deployment>
-      <entity-deployment name="os.User"
-                          location="ejb/osuser/User"
-                          table="OSUser"
-                          >
-
-         <primkey-mapping>
-            <cmp-field-mapping
-               name="id"
-               persistence-name="id"
-            >
-
-            </cmp-field-mapping>
-
-         </primkey-mapping>
-
-            <cmp-field-mapping
-               name="name"
-               persistence-name="name"
-            >
-
-            </cmp-field-mapping>
-
-            <cmp-field-mapping
-               name="passwordHash"
-               persistence-name="passwordHash"
-            >
-
-            </cmp-field-mapping>
-
-         <finder-method query="1 = 1 order by $name">
-            <method>
-               <ejb-name>os.User</ejb-name>
-               <method-name>findAll</method-name>
-               <method-params>
-               </method-params>
-            </method>
-         </finder-method>
-         <finder-method query="$name = $1">
-            <method>
-               <ejb-name>os.User</ejb-name>
-               <method-name>findByName</method-name>
-               <method-params>
-                  <method-param>java.lang.String</method-param>
-               </method-params>
-            </method>
-         </finder-method>
-
-      </entity-deployment>
-
-      <!-- Message Driven Beans -->
-
-   </enterprise-beans>
-
-</orion-ejb-jar>

File src/etc/pramati/pramati-j2ee-server.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE pramati-j2ee-server PUBLIC '-//Pramati Technologies //DTD Pramati J2ee Server 3.0//EN' 'http://www.pramati.com/dtd/pramati_j2ee_server.dtd'>
-
-<pramati-j2ee-server>
-  <description>No Description</description>
-  <vhost-name>default</vhost-name>
-  <realm-name>osuser</realm-name>
-  <ejb-module>
-    <name>oscore.jar</name>
-    <ejb>
-      <name>os.PropertyStore</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyStore</jndi-name>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyEntry</ejb-ref-name>
-	<ejb-link>os.PropertyEntry</ejb-link>
-      </ejb-ref>
-    </ejb>
-    <ejb>
-      <name>os.SequenceGenerator</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.SequenceGenerator</jndi-name>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.Sequence</ejb-ref-name>
-	<ejb-link>os.Sequence</ejb-link>
-      </ejb-ref>
-    </ejb>
-    <ejb>
-      <name>os.PropertyData</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyData</jndi-name>
-    </ejb>
-    <ejb>
-      <name>os.PropertyDate</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyDate</jndi-name>
-    </ejb>
-    <ejb>
-      <name>os.PropertyDecimal</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyDecimal</jndi-name>
-    </ejb>
-    <ejb>
-      <name>os.PropertyNumber</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyNumber</jndi-name>
-    </ejb>
-    <ejb>
-      <name>os.PropertyEntry</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyEntry</jndi-name>
-      <query-mapping>
-	<method-name>findByNameAndId</method-name>
-	<query-name>findByNameAndId</query-name>
-	<method-param>java.lang.String</method-param>
-	<method-param>long</method-param>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByEntity</method-name>
-	<query-name>findByEntity</query-name>
-	<method-param>java.lang.String</method-param>
-	<method-param>long</method-param>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyNumber</ejb-ref-name>
-	<ejb-link>os.PropertyNumber</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyDate</ejb-ref-name>
-	<ejb-link>os.PropertyDate</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyData</ejb-ref-name>
-	<ejb-link>os.PropertyData</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyString</ejb-ref-name>
-	<ejb-link>os.PropertyString</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.PropertyDecimal</ejb-ref-name>
-	<ejb-link>os.PropertyDecimal</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/os.SequenceGenerator</ejb-ref-name>
-	<ejb-link>os.SequenceGenerator</ejb-link>
-      </ejb-ref>
-    </ejb>
-    <ejb>
-      <name>os.PropertyString</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.PropertyString</jndi-name>
-    </ejb>
-    <ejb>
-      <name>os.Sequence</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>os.Sequence</jndi-name>
-    </ejb>
-  </ejb-module>
-  <ejb-module>
-    <name>osuser.jar</name>
-    <ejb>
-      <name>os.Group</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>ejb/osuser/Group</jndi-name>
-      <query-mapping>
-	<method-name>findAll</method-name>
-	<query-name>Group-findAll</query-name>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByName</method-name>
-	<query-name>Group-findByName</query-name>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <ejb-ref>
-	<ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-	<ejb-link>os.SequenceGenerator</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-	<ejb-link>os.PropertyStore</ejb-link>
-      </ejb-ref>
-    </ejb>
-    <ejb>
-      <name>os.Membership</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>ejb/osuser/Membership</jndi-name>
-      <query-mapping>
-	<method-name>findAll</method-name>
-	<query-name>Membership-findAll</query-name>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByUser</method-name>
-	<query-name>Membership-findByUser</query-name>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByGroup</method-name>
-	<query-name>Membership-findByGroup</query-name>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByUserAndGroup</method-name>
-	<query-name>Membership-findByUserAndGroup</query-name>
-	<method-param>java.lang.String</method-param>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <ejb-ref>
-	<ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-	<ejb-link>os.SequenceGenerator</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-	<ejb-link>os.PropertyStore</ejb-link>
-      </ejb-ref>
-    </ejb>
-    <ejb>
-      <name>os.User</name>
-      <max-pool-size>40</max-pool-size>
-      <min-pool-size>20</min-pool-size>
-      <low-activity-interval>20</low-activity-interval>
-      <is-secure>false</is-secure>
-      <jndi-name>ejb/osuser/User</jndi-name>
-      <query-mapping>
-	<method-name>findAll</method-name>
-	<query-name>User-findAll</query-name>
-      </query-mapping>
-      <query-mapping>
-	<method-name>findByName</method-name>
-	<query-name>User-findByName</query-name>
-	<method-param>java.lang.String</method-param>
-      </query-mapping>
-      <ejb-ref>
-	<ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-	<ejb-link>os.SequenceGenerator</ejb-link>
-      </ejb-ref>
-      <ejb-ref>
-	<ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-	<ejb-link>os.PropertyStore</ejb-link>
-      </ejb-ref>
-    </ejb>
-  </ejb-module>
-  <web-module>
-    <name>manager</name>
-    <module-name>manager.war</module-name>
-    <ejb-ref>
-      <ejb-ref-name>ejb/osuser/User</ejb-ref-name>
-      <ejb-link>ejb/osuser/User</ejb-link>
-    </ejb-ref>
-    <ejb-ref>
-      <ejb-ref-name>ejb/osuser/Group</ejb-ref-name>
-      <ejb-link>ejb/osuser/Group</ejb-link>
-    </ejb-ref>
-    <ejb-ref>
-      <ejb-ref-name>ejb/osuser/Membership</ejb-ref-name>
-      <ejb-link>ejb/osuser/Membership</ejb-link>
-    </ejb-ref>
-  </web-module>
-  <role-mapping>
-    <module-name>manager.war</module-name>
-    <role-name>foobars</role-name>
-    <role-link>foobars</role-link>
-  </role-mapping>
-  <role-mapping>
-    <module-name>oscore.jar</module-name>
-    <role-name>foobars</role-name>
-    <role-link>foobars</role-link>
-  </role-mapping>
-  <role-mapping>
-    <module-name>osuser.jar</module-name>
-    <role-name>foobars</role-name>
-    <role-link>foobars</role-link>
-  </role-mapping>
-</pramati-j2ee-server>
-

File src/etc/pramati/pramati-or-map.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE or-mapping>
-
-<or-mapping>
-  <ejb-jar>
-    <jar-name>oscore.jar</jar-name>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyData</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYDATA</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>bytes</cmp-field>
-	<db-field>VALUE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyDate</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYDATE</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>date</cmp-field>
-	<db-field>VALUE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyDecimal</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYDECIMAL</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>decimal</cmp-field>
-	<db-field>VALUE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyNumber</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYNUMBER</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>number</cmp-field>
-	<db-field>VALUE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyEntry</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYENTRY</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>entityId</cmp-field>
-	<db-field>ENTITYID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>key</cmp-field>
-	<db-field>KEY</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>entityName</cmp-field>
-	<db-field>ENTITYNAME</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>type</cmp-field>
-	<db-field>TYPE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.PropertyString</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_PROPERTYSTRING</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>string</cmp-field>
-	<db-field>VALUE</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.Sequence</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OS_SEQUENCE</table-name>
-      <field-mapping>
-	<cmp-field>name</cmp-field>
-	<db-field>NAME</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>actualCount</cmp-field>
-	<db-field>COUNT</db-field>
-      </field-mapping>
-    </ejb>
-  </ejb-jar>
-  <ejb-jar>
-    <jar-name>osuser.jar</jar-name>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.Group</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OSGROUP</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>name</cmp-field>
-	<db-field>NAME</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.Membership</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OSMEMBERSHIP</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>user</cmp-field>
-	<db-field>USERID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>group</cmp-field>
-	<db-field>GROUPID</db-field>
-      </field-mapping>
-    </ejb>
-    <ejb>
-      <concurrency-type>pessimistic-concurrency</concurrency-type>
-      <exclusion-type>exclusive</exclusion-type>
-      <ejb-name>os.User</ejb-name>
-      <datasource-name>jdbc/DefaultDS</datasource-name>
-      <table-name>OSUSER</table-name>
-      <field-mapping>
-	<cmp-field>id</cmp-field>
-	<db-field>ID</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>passwordHash</cmp-field>
-	<db-field>PASSWORDHASH</db-field>
-      </field-mapping>
-      <field-mapping>
-	<cmp-field>name</cmp-field>
-	<db-field>NAME</db-field>
-      </field-mapping>
-    </ejb>
-  </ejb-jar>
-</or-mapping>
-

File src/etc/pramati/queries.props

  • Ignore whitespace
-#Generated by Proton 4.0 Query Designer on Wed Mar 13 22:27:28 PST 2002
-#Wed Mar 13 22:27:28 PST 2002
-User-findAll.from.size=1
-distinct=false
-Group-findByName.where.0.paramsize=1
-Group-findByName.where.0.rhsfieldtype=-999
-User-findAll.order.size=0
-Membership-findByGroup.where.0.rhsfield=?
-Membership-findByUserAndGroup.select.2=GROUPID
-Membership-findByUserAndGroup.select.1=USERID
-Membership-findAll.group.size=0
-Membership-findByUserAndGroup.select.0=ID
-Membership-findByUserAndGroup.where.0.paramsize=1
-Group-findByName.where.0.rhstype=0
-Membership-findByUserAndGroup.where.size=2
-Group-findByName.where.0.conjugate=
-Membership-findByUser.order.size=0
-Membership-findByUserAndGroup.where.1.paramtype.0=12
-User-findAll.having.size=0
-Membership-findByGroup.select.2=GROUPID
-Membership-findByGroup.select.1=USERID
-Membership-findByUserAndGroup.where.0.conjugate=
-Membership-findByGroup.select.0=ID
-queryname.7=Membership-findAll
-queryname.6=Group-findByName
-queryname.5=Group-findAll
-queryname.4=User-findByName
-queryname.3=Membership-findByGroup
-Membership-findByUser.where.0.rhsfieldtype=-999
-queryname.2=Membership-findByUser
-Group-findAll.from.0=OSGROUP
-queryname.1=Membership-findByUserAndGroup
-queryname.0=User-findAll
-Membership-findByUserAndGroup.where.1.paramsize=1
-Membership-findByUserAndGroup.select.size=3
-User-findByName.where.0.rhsfieldtype=-999
-User-findByName.having.size=0
-Membership-findByUser.where.0.paramname.0=USERID
-User-findByName.where.0.paramtype.0=12
-Membership-findByGroup.group.size=0
-Membership-findByGroup.where.0.paramtype.0=12
-User-findByName.group.size=0
-User-findAll.where.size=0
-Membership-findByUserAndGroup.where.1.conjugate=and
-querysize=8
-Group-findByName.select.size=2
-Membership-findByGroup.where.0.lhsfield=GROUPID
-Group-findAll.select.1=NAME
-Group-findAll.select.0=ID
-Group-findByName.from.0=OSGROUP
-User-findAll.select.2=PASSWORDHASH
-User-findAll.select.1=NAME
-User-findAll.select.0=ID
-Membership-findByUser.where.size=1
-Group-findByName.group.size=0
-Membership-findByUser.where.0.rhsfield=?
-Membership-findByGroup.select.size=3
-User-findAll.from.0=OSUSER
-Membership-findByGroup.where.0.operator=\=
-Membership-findByUserAndGroup.where.1.rhsfieldtype=-999
-Membership-findByUserAndGroup.where.0.rhstype=0
-Membership-findByGroup.from.0=OSMEMBERSHIP
-Group-findAll.group.size=0
-Membership-findByUserAndGroup.where.0.rhsfield=?
-User-findByName.where.0.paramsize=1
-Group-findByName.where.0.paramname.0=NAME
-Membership-findByUser.having.size=0
-Group-findAll.having.size=0
-User-findByName.where.0.rhstype=0
-Membership-findAll.order.size=0
-Membership-findByUserAndGroup.where.0.paramname.0=USERID
-User-findByName.where.0.conjugate=
-User-findByName.from.0=OSUSER
-User-findByName.where.0.rhsfield=?
-Membership-findByUserAndGroup.where.1.rhsfield=?
-Membership-findAll.having.size=0
-Membership-findByUserAndGroup.where.0.lhsfieldtype=12
-Membership-findByUser.where.0.lhsfield=USERID
-Group-findByName.from.size=1
-Membership-findByGroup.where.0.paramsize=1
-User-findAll.select.size=3
-Membership-findByUserAndGroup.where.0.lhsfield=USERID
-Membership-findByUser.where.0.operator=\=
-Membership-findByGroup.where.0.lhsfieldtype=12
-Membership-findByGroup.order.size=0
-User-findByName.order.size=0
-Membership-findByUserAndGroup.where.1.rhstype=0
-Membership-findByUserAndGroup.group.size=0
-Membership-findAll.from.size=1
-Membership-findByGroup.where.0.conjugate=
-Membership-findByUserAndGroup.where.0.operator=\=
-Membership-findAll.select.2=GROUPID
-User-findByName.select.size=3
-Membership-findAll.select.1=USERID
-Membership-findAll.select.0=ID
-User-findByName.from.size=1
-Group-findByName.where.0.rhsfield=?
-Membership-findByUserAndGroup.from.0=OSMEMBERSHIP
-User-findByName.where.0.lhsfield=NAME
-User-findAll.group.size=0
-Membership-findByUserAndGroup.where.1.lhsfield=GROUPID
-Membership-findByUser.where.0.paramtype.0=12
-Membership-findByGroup.where.0.rhstype=0
-Membership-findAll.where.size=0
-Membership-findByUserAndGroup.from.size=1
-User-findByName.where.0.operator=\=
-Group-findAll.order.size=0
-Membership-findByUserAndGroup.where.1.operator=\=
-Membership-findByGroup.from.size=1
-Membership-findByUserAndGroup.where.1.paramname.0=GROUPID
-Membership-findByUser.from.0=OSMEMBERSHIP
-Group-findByName.order.size=0
-Group-findByName.where.0.lhsfieldtype=12
-Membership-findAll.from.0=OSMEMBERSHIP
-User-findByName.where.size=1
-User-findByName.select.2=PASSWORDHASH
-User-findByName.select.1=NAME
-User-findByName.select.0=ID
-Membership-findByUserAndGroup.where.0.paramtype.0=12
-Membership-findByUser.select.size=3
-Group-findAll.select.size=2
-Membership-findByUserAndGroup.having.size=0
-User-findByName.where.0.paramname.0=NAME
-Membership-findByUser.group.size=0
-Membership-findByUser.where.0.paramsize=1
-Membership-findByGroup.where.0.paramname.0=GROUPID
-Group-findByName.where.0.paramtype.0=12
-Membership-findByGroup.where.size=1
-Group-findByName.where.0.lhsfield=NAME
-Membership-findByUser.where.0.lhsfieldtype=12
-Membership-findAll.select.size=3
-Group-findAll.from.size=1
-Membership-findByUser.where.0.conjugate=
-Group-findByName.having.size=0
-User-findByName.where.0.lhsfieldtype=12
-Group-findByName.where.size=1
-Membership-findByUserAndGroup.where.1.lhsfieldtype=12
-Membership-findByUserAndGroup.where.0.rhsfieldtype=-999
-Membership-findByGroup.having.size=0
-Membership-findByUser.where.0.rhstype=0
-Membership-findByUserAndGroup.order.size=0
-Group-findAll.where.size=0
-Membership-findByUser.from.size=1
-Group-findByName.where.0.operator=\=
-Membership-findByUser.select.2=GROUPID
-Membership-findByUser.select.1=USERID
-Membership-findByGroup.where.0.rhsfieldtype=-999
-Membership-findByUser.select.0=ID
-Group-findByName.select.1=NAME
-Group-findByName.select.0=ID

File src/etc/weblogic/weblogic-cmp-rdbms-jar.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE weblogic-rdbms-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB 1.1 RDBMS Persistence//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-rdbms11-persistence-600.dtd">
-
-<weblogic-rdbms-jar>
-
-   <weblogic-rdbms-bean>
-      <ejb-name>os.Group</ejb-name>
-      <data-source-name>jdbc/DefaultDS</data-source-name>
-      <table-name>OSGROUP</table-name>
-      <field-map>
-         <cmp-field>id</cmp-field>
-         <dbms-column>id</dbms-column>
-      </field-map>
-      <field-map>
-         <cmp-field>name</cmp-field>
-         <dbms-column>name</dbms-column>
-      </field-map>
-        <finder>
-            <finder-name>findAll</finder-name>
-            <finder-query></finder-query>
-        </finder>
-        <finder>
-            <finder-name>findByName</finder-name>
-            <finder-param>java.lang.String</finder-param>
-            <finder-query><![CDATA[(= name $0)]]></finder-query>
-        </finder>
-    </weblogic-rdbms-bean>
-
-
-   <weblogic-rdbms-bean>
-      <ejb-name>os.User</ejb-name>
-      <data-source-name>jdbc/DefaultDS</data-source-name>
-      <table-name>OSUSER</table-name>
-      <field-map>
-         <cmp-field>id</cmp-field>
-         <dbms-column>id</dbms-column>
-      </field-map>
-      <field-map>
-         <cmp-field>name</cmp-field>
-         <dbms-column>name</dbms-column>
-      </field-map>
-      <field-map>
-         <cmp-field>passwordHash</cmp-field>
-         <dbms-column>passwordHash</dbms-column>
-      </field-map>
-        <finder>
-            <finder-name>findAll</finder-name>
-            <finder-query></finder-query>
-        </finder>
-        <finder>
-            <finder-name>findByName</finder-name>
-            <finder-param>java.lang.String</finder-param>
-            <finder-query><![CDATA[(= name $0)]]></finder-query>
-        </finder>
-   </weblogic-rdbms-bean>
-
-
-   <weblogic-rdbms-bean>
-      <ejb-name>os.Membership</ejb-name>
-      <data-source-name>jdbc/DefaultDS</data-source-name>
-      <table-name>OSMEMBERSHIP</table-name>
-      <field-map>
-         <cmp-field>id</cmp-field>
-         <dbms-column>id</dbms-column>
-      </field-map>
-      <field-map>
-         <cmp-field>user</cmp-field>
-         <dbms-column>userId</dbms-column>
-      </field-map>
-      <field-map>
-         <cmp-field>group</cmp-field>
-         <dbms-column>groupId</dbms-column>
-      </field-map>
-        <finder>
-            <finder-name>findAll</finder-name>
-            <finder-query></finder-query>
-        </finder>
-        <finder>
-            <finder-name>findByUser</finder-name>
-            <finder-param>java.lang.String</finder-param>
-            <finder-query><![CDATA[(= user $0)]]></finder-query>
-        </finder>
-        <finder>
-            <finder-name>findByGroup</finder-name>
-            <finder-param>java.lang.String</finder-param>
-            <finder-query><![CDATA[(= group $0)]]></finder-query>
-        </finder>
-        <finder>
-            <finder-name>findByUserAndGroup</finder-name>
-            <finder-param>java.lang.String</finder-param>
-            <finder-param>java.lang.String</finder-param>
-            <finder-query><![CDATA[(& (= user $0) (= group $1))]]></finder-query>
-        </finder>
-   </weblogic-rdbms-bean>
-
-   <create-default-dbms-tables>True</create-default-dbms-tables>
-
-</weblogic-rdbms-jar>

File src/etc/weblogic/weblogic-ejb-jar.xml

  • Ignore whitespace
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE weblogic-ejb-jar PUBLIC "-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN" "http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd">
-
-<weblogic-ejb-jar>
-    <description>OSUser EJB Providers</description>
-
-    <weblogic-enterprise-bean>
-        <ejb-name>os.Group</ejb-name>
-        <entity-descriptor>
-            <persistence>
-                <persistence-type>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
-                </persistence-type>
-                <persistence-use>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                </persistence-use>
-            </persistence>
-        </entity-descriptor>
-        <reference-descriptor>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-                <jndi-name>os.SequenceGenerator</jndi-name>
-            </ejb-reference-description>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-                <jndi-name>os.PropertyStore</jndi-name>
-            </ejb-reference-description>
-        </reference-descriptor>
-        <jndi-name>ejb/osuser/Group</jndi-name>
-    </weblogic-enterprise-bean>
-
-    <weblogic-enterprise-bean>
-        <ejb-name>os.Membership</ejb-name>
-        <entity-descriptor>
-            <persistence>
-                <persistence-type>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
-                </persistence-type>
-                <persistence-use>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                </persistence-use>
-            </persistence>
-        </entity-descriptor>
-        <reference-descriptor>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-                <jndi-name>os.SequenceGenerator</jndi-name>
-            </ejb-reference-description>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-                <jndi-name>os.PropertyStore</jndi-name>
-            </ejb-reference-description>
-        </reference-descriptor>
-        <jndi-name>ejb/osuser/Membership</jndi-name>
-    </weblogic-enterprise-bean>
-
-    <weblogic-enterprise-bean>
-        <ejb-name>os.User</ejb-name>
-        <entity-descriptor>
-            <persistence>
-                <persistence-type>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                    <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
-                </persistence-type>
-                <persistence-use>
-                    <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
-                    <type-version>5.1.0</type-version>
-                </persistence-use>
-            </persistence>
-        </entity-descriptor>
-        <reference-descriptor>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/sequenceGenerator</ejb-ref-name>
-                <jndi-name>os.SequenceGenerator</jndi-name>
-            </ejb-reference-description>
-            <ejb-reference-description>
-                <ejb-ref-name>ejb/propertyStore</ejb-ref-name>
-                <jndi-name>os.PropertyStore</jndi-name>
-            </ejb-reference-description>
-        </reference-descriptor>
-        <jndi-name>ejb/osuser/User</jndi-name>
-    </weblogic-enterprise-bean>
-
-
-</weblogic-ejb-jar>

File src/java/com/opensymphony/user/provider/ejb/entity/GroupEJB.java

View file
  • Ignore whitespace
 /**
  * Entity bean representing Group.
  *
- * @ejb.bean type="CMP" name="Group" primkey-field="id" jndi-name="ejb/osuser/Group" view-type="remote"
+ * @ejb.bean type="CMP" name="Group" primkey-field="id" jndi-name="ejb/osuser/Group" view-type="remote" schema="OSGroup"
  * @ejb.interface remote-class="com.opensymphony.user.provider.ejb.entity.GroupRemote" extends="javax.ejb.EJBObject"
  * @ejb.home class="com.opensymphony.user.provider.ejb.entity.GroupHome" extends="javax.ejb.EJBHome"
  * @ejb.pk class="java.lang.Long" extends="java.lang.Object"
  *
- * @ejb.finder  name="findAll" signature="java.util.Collection findAll()" query="select object(g) from Group g"
- * @jboss.query name="findAll" signature="java.util.Collection findAll()" query="select object(g) from Group g order by g.name"
- * @ejb.finder  name="findByName" signature="com.opensymphony.user.provider.ejb.entity.GroupRemote findByName(java.lang.String name)" query="select object(g) from Group g where g.name = ?1"
- * @jboss.query name="findByName" signature="com.opensymphony.user.provider.ejb.entity.GroupRemote findByName(java.lang.String name)" query="select object(g) from Group g where g.name = ?1 order by g.name"
+ * @ejb.finder  name="findAll" signature="java.util.Collection findAll()" query="select object(g) from OSGroup g"
+ * @jboss.query name="findAll" signature="java.util.Collection findAll()" query="select object(g) from OSGroup g order by g.name"
+ * @ejb.finder  name="findByName" signature="com.opensymphony.user.provider.ejb.entity.GroupRemote findByName(java.lang.String name)" query="select object(g) from OSGroup g where g.name = ?1"
+ * @jboss.query name="findByName" signature="com.opensymphony.user.provider.ejb.entity.GroupRemote findByName(java.lang.String name)" query="select object(g) from OSGroup g where g.name = ?1 order by g.name"
  *
  * @ejb.env-entry name="sequenceName" type="java.lang.String" value="OSUEntityEJB"
  * @ejb.ejb-external-ref ref-name="sequenceGenerator" type="Session" home="com.opensymphony.module.sequence.SequenceGeneratorHome" remote="com.opensymphony.module.sequence.SequenceGenerator" link="SequenceGenerator"
  * @author <a href="mailto:joe@truemesh.com">Joe Walnes</a>
  * @author <a href="mailto:mike@atlassian.com">Mike Cannon-Brookes</a>
  * @author <a href="mailto:plightbo@cisco.com">Patrick Lightbody</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
  */
 public abstract class GroupEJB extends AbstractEntityAdapter implements EntityBean {
     //~ Methods ////////////////////////////////////////////////////////////////