2 Replies Latest reply on May 25, 2005 11:54 AM by paarsar

    Is there a maximum limit of Entity Beans alloted in ejb-jar.

    paarsar

      I currently have 16 EntityBeans in my deployment descriptor, when i add a 17th i get a very weird runtime error. I've checked the syntax of the last bean and everything is fine. I've even deleted other beans and change them around. But there always seems to be something wrong with last bean in then DD.
      Please help, i have been working on this problem for 4 days. I am using Jboss 3.2.3 and jdk 1.4 perhaps there was some bug in server that i haven't heard about.

      Also i am using ejbdoclate to create deployment descriptors

      here is the stack trace.


      org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nested throwable: (java.lang.reflect.InvocationTargetException)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:123)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy976.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:613)
      at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
      ... 57 more
      Caused by: javax.ejb.EJBException: null; CausedByException is:
      ejb not bound
      at org.jboss.nukes.core.ejb.UserEJB.(UserEJB.java:107)
      at org.jboss.nukes.core.ejb.UserEJB$Proxy.()
      ... 64 more
      18:24:56,984 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=nukes/WorkflowInstance,service=EJB
      org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nested throwable: (java.lang.reflect.InvocationTargetException)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:123)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy976.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:458)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:613)
      at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
      ... 57 more
      Caused by: javax.ejb.EJBException: null; CausedByException is:
      ejb not bound
      at org.jboss.nukes.core.ejb.UserEJB.(UserEJB.java:107)
      at org.jboss.nukes.core.ejb.UserEJB$Proxy.()
      ... 64 more




        • 1. Re: Is there a maximum limit of Entity Beans alloted in ejb-
          schrouf

          There is no limit on the count of deployable ejb's per jar. Therefore I am quite sure that there is still a syntax or conceptual problem within your error causing entity bean.

          For verification remove all other entity beans and try to deploy that single bean. If it still fails to deploy, than post your bean code and the corresponding deployment descriptors for further investigation.

          Regards
          Ulf

          • 2. Re: Is there a maximum limit of Entity Beans alloted in ejb-
            paarsar

            Thanks alot for the response.

            In taking out all of the other beans in code, all depended modules crash, so i tested this theory in another way. I removed an older bean, One in which was working before i added the last bean. When i removed it everything deployed properly. Thinking to myself maybe there was some conflicting code in that dd, i put the bean back in and removed an even older bean, the application once again deployed correctly. the "last bean" only has a get / set Id function , and also ejbCreate and PostCreate methods

            I am using CMP version 2.x for all beans here is the ejb-jar:


            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

            <ejb-jar >

            <enterprise-beans>

            <!-- Session Beans -->
            <!--
            To add session beans that you have deployment descriptor info for, add
            a file to your XDoclet merge directory called session-beans.xml that contains
            the <session></session> markup for those beans.
            -->

            <!-- Entity Beans -->
            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>GroupEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.GroupEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.GroupEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.GroupEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>group</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByname</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(g) FROM group AS g WHERE g.name = ?1]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(g) FROM group AS g]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-GroupEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>PublicationEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.PublicationEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PublicationEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.PublicationEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>publication</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>configDoc</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM publication AS p]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-PublicationEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>ConfigDocEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.ConfigDocEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.ConfigDocEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.ConfigDocEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>configdoc</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>doc</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(c) FROM configdoc AS c]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByName</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(c) FROM configdoc AS c WHERE c.name like '?1']]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-ConfigDocEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>IssueCommentEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.IssueCommentEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.IssueCommentEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.IssueCommentEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>issuecomment</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>comment</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-IssueCommentEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>PropertyDefaultValueEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.PropertyDefaultValueEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PropertyDefaultValueEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.PropertyDefaultValueEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>propertydefaultvalue</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>value</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>order</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-PropertyDefaultValueEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>TFileEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.TFileEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.TFileEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.TFileEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>tfile</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>creationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>isLocked</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>fileName</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-TFileEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WebSiteEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WebSiteEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WebSiteEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WebSiteEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>website</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-WebSiteEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowBlueprintEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowBlueprintEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowBlueprintEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowBlueprintEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflowblueprint</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>position</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>needsIndividual</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workFlowId</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByWorkFlowId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM workflowblueprint AS b where b.workFlowId = ?1 ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowIdAndPosition</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM workflowblueprint AS b where b.workFlowId = ?1 and b.position= ?2]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-WorkFlowBlueprintEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>UserEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.UserEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.UserEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.UserEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>user</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[The user name (login).]]></description>
            <field-name>userName</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[When the user joined.]]></description>
            <field-name>registrationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Does the user have his email visible ?]]></description>
            <field-name>viewEmail</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[The user name.]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[User's email, where nukes should send him notifications.]]></description>
            <field-name>realEmail</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[If the user does not want his email viewed, show this one instead.]]></description>
            <field-name>fakeEmail</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[User's website URL.]]></description>
            <field-name>URL</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Time difference with the greenwich meridian.]]></description>
            <field-name>timeZoneOffset</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[What the user looks like.]]></description>
            <field-name>avatar</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>messengerICQ</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>messengerAIM</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>messengerYIM</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>messengerMSNM</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>location</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>language</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>occupation</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>interests</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[This little piece of text can be appended after a message from the user.]]></description>
            <field-name>signature</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Hobbies, etc...]]></description>
            <field-name>extraInformation</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[The password hash.]]></description>
            <field-name>password</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[User's favorite theme.]]></description>
            <field-name>theme</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>displayMode</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[True if the user wish to see a collection of items sorted from the youngest to the oldest.]]></description>
            <field-name>sortOrderDescending</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[The threshold indicating when something is hot.]]></description>
            <field-name>treshold</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>displayScores</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[The maximum of char that the user wants to see on a commment.]]></description>
            <field-name>commentMax</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Last time the user did an action.]]></description>
            <field-name>lastVisitDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[When the user last logged.]]></description>
            <field-name>previousLastVisitDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Secret question.]]></description>
            <field-name>question</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[Answer to secret question.]]></description>
            <field-name>answer</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>enabled</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <ejb-local-ref >
            <ejb-ref-name>ejb/PropertyValueEJBLocal</ejb-ref-name>
            <ejb-ref-type>Entity</ejb-ref-type>
            <local-home>org.jboss.nukes.core.ejb.PropertyValueEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PropertyValueEJBLocal</local>
            <ejb-link>PropertyValueEJB</ejb-link>
            </ejb-local-ref>

            <query>
            <query-method>
            <method-name>findByUserName</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(u) FROM user AS u WHERE u.userName = ?1]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByUserNameLike</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>int</method-param>
            <method-param>int</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(u) FROM user AS u]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByGroup</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.GroupEJBLocal</method-param>
            <method-param>int</method-param>
            <method-param>int</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(u) FROM user AS u]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findRange</method-name>
            <method-params>
            <method-param>int</method-param>
            <method-param>int</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(u) FROM user AS u]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-UserEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>ArticleContentEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.ArticleContentEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.ArticleContentEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.ArticleContentEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>articleContent</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>creationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>version</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>content</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-ArticleContentEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>PropertyValueEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.PropertyValueEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PropertyValueEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.PropertyValueEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>propertyvalue</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>value</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByUserAndProfile</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.UserEJBLocal</method-param>
            <method-param>org.jboss.nukes.core.ejb.ProfileEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM propertyvalue AS p WHERE p.user = ?1 AND p.property.profile = ?2]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByUserAndProperty</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.UserEJBLocal</method-param>
            <method-param>org.jboss.nukes.core.ejb.PropertyEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM propertyvalue AS p WHERE p.user = ?1 AND p.property = ?2]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-PropertyValueEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflow</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>createdDate</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-WorkFlowEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>PageEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.PageEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PageEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.PageEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>page</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>fileId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>masterTemplete</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectDirectoriesByPrefix</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>org.jboss.nukes.core.ejb.PublicationEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT p.order FROM page AS p]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectFileIdsByPrefix</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>org.jboss.nukes.core.ejb.PublicationEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT p.order FROM page AS p]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-PageEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>TFileContentEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.TFileContentEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.TFileContentEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.TFileContentEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>TFileContent</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>creationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>version</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>content</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-TFileContentEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WebSiteEnvEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WebSiteEnvEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WebSiteEnvEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WebSiteEnvEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>websiteEnv</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-WebSiteEnvEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowBluePrintGroupEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowBluePrintGroupEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowBluePrintGroupEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowBluePrintGroupEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflowblueprintgroup</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>needsIndividual</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workflowblueprintId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>groupId</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByWorkflowblueprintId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM workflowblueprintgroup AS b where b.workflowblueprintId = ?1 ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkflowblueprintIdandGroupId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(b) FROM workflowblueprintgroup AS b where b.workflowblueprintId = ?1 and b.groupId = ?2]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-WorkFlowBluePrintGroupEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>QueueLogEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.QueueLogEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.QueueLogEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.QueueLogEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>queue</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>creationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>finishDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>userId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>articleId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workflowInstanceId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>position</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>groupId</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByCurrentUser</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.userId = ?1 and q.finishDate is null ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByGroupId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.groupId = ?1 and q.userId is null ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowInstance</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.workflowInstanceId = ?1 and q.finishDate is null ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowInstanceandPosition</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.workflowInstanceId = ?1 and q.position = ?2 and q.finishDate is null ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowInstanceandUserId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.workflowInstanceId = ?1 and q.userId = ?2 and q.finishDate is null ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByCurrentUserAndArticle</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(q) FROM queue AS q WHERE q.userId = ?1 and q.articleId = ?2 and q.finishDate is null ]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-QueueLogEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>MagazineIssueEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.MagazineIssueEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.MagazineIssueEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.MagazineIssueEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>magazineIssue</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>year</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>issueNumber</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>startDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>endDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>configDoc</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findbyAlpha</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(m) FROM magazineIssue AS m ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByParentIssue</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.MagazineIssueEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(m) FROM magazineIssue AS m ]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByPublication</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.PublicationEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(m) FROM magazineIssue AS m ]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-MagazineIssueEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowMetaEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowMetaEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowMetaEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowMetaEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflowinstancemeta</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>groupId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>userId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workFlowInstanceId</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>position</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByWorkFlowInstanceId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(n) FROM workflowinstancemeta AS n where n.workFlowInstanceId = ?1]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowInstanceIdandGroupandPosition</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(n) FROM workflowinstancemeta AS n where n.workFlowInstanceId = ?1 and n.groupId = ?2 and n.position = ?3]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByWorkFlowInstanceIdandPosition</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(n) FROM workflowinstancemeta AS n where n.workFlowInstanceId = ?1 and n.position = ?2]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-WorkFlowMetaEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>PropertyEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.PropertyEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.PropertyEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.PropertyEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>property</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>type</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findToto</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM property AS p]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-PropertyEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowNodeEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowNodeEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowNodeEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowNodeEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflownode</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>position</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workFlowId</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findByWorkFlowId</method-name>
            <method-params>
            <method-param>java.lang.Integer</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(n) FROM workflownode AS n where n.workFlowId = ?1]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-WorkFlowNodeEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>IssueEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.IssueEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.IssueEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.IssueEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>issue</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>isResolved</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <!-- Write a file named ejb-finders-IssueEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>ProfileEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.ProfileEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.ProfileEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.ProfileEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>profile</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>status</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>usage</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>access</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findIncomplete</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.UserEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM profile AS p]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM profile AS p]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findEditableByUser</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM profile AS p]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findEditableByUser</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(p) FROM profile AS p WHERE p.status=1 AND p.access=1]]></ejb-ql>
            </query>
            <query>
            <description><![CDATA[]]></description>
            <query-method>
            <method-name>ejbSelectGeneric</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            <method-param>java.lang.Object[]</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-ProfileEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>ArticleEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.ArticleEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.ArticleEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.ArticleEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>article</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>title</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>textSnippet</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>creationDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>isLocked</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>keywords</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>configDoc</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <resource-ref >
            <res-ref-name>jdo/pmf</res-ref-name>
            <res-type>javax.jdo.PersistenceManagerFactory</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
            </resource-ref>

            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(a) FROM article AS a]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findByUser</method-name>
            <method-params>
            <method-param>org.jboss.nukes.core.ejb.UserEJBLocal</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(a) FROM article AS a, IN(a.authors) AS ath WHERE ath = ?1]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findbyAlpha</method-name>
            <method-params>
            <method-param>java.lang.String</method-param>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(a) FROM article AS a ]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-ArticleEJB.xml if you want to define extra finders. -->
            </entity>

            <entity >
            <description><![CDATA[]]></description>

            <ejb-name>WorkFlowInstanceEJB</ejb-name>

            <local-home>org.jboss.nukes.core.ejb.WorkFlowInstanceEJBLocalHome</local-home>
            <local>org.jboss.nukes.core.ejb.WorkFlowInstanceEJBLocal</local>

            <ejb-class>org.jboss.nukes.core.ejb.WorkFlowInstanceEJB</ejb-class>
            <persistence-type>Container</persistence-type>
            <prim-key-class>java.lang.Integer</prim-key-class>
            <reentrant>False</reentrant>
            <cmp-version>2.x</cmp-version>
            <abstract-schema-name>workflowinstance</abstract-schema-name>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>id</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>name</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>description</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>dateCreated</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>startDate</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>datePublish</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>dateDue</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>createById</field-name>
            </cmp-field>
            <cmp-field >
            <description><![CDATA[]]></description>
            <field-name>workflowId</field-name>
            </cmp-field>
            <primkey-field>id</primkey-field>

            <query>
            <query-method>
            <method-name>findAll</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(w) FROM workflowinstance AS w]]></ejb-ql>
            </query>
            <query>
            <query-method>
            <method-name>findAllActive</method-name>
            <method-params>
            </method-params>
            </query-method>
            <ejb-ql><![CDATA[SELECT OBJECT(w) FROM workflowinstance AS w WHERE w.datePublish is NULL]]></ejb-ql>
            </query>
            <!-- Write a file named ejb-finders-WorkFlowInstanceEJB.xml if you want to define extra finders. -->
            </entity>

            <!--
            To add entity beans that you have deployment descriptor info for, add
            a file to your XDoclet merge directory called entity-beans.xml that contains
            the <entity></entity> markup for those beans.
            -->

            <!-- Message Driven Beans -->
            <!--
            To add message driven beans that you have deployment descriptor info for, add
            a file to your XDoclet merge directory called message-driven-beans.xml that contains
            the <message-driven></message-driven> markup for those beans.
            -->

            </enterprise-beans>

            <!-- Relationships -->
            <relationships >
            <ejb-relation >
            <ejb-relation-name>tfile-currentVersion</ejb-relation-name>

            <ejb-relationship-role >
            <ejb-relationship-role-name>tfile-has-one-currentVersion</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
            <ejb-name>TFileEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>currentVersion</cmr-field-name>
            </cmr-field>
            </ejb-relationship-role>

            <ejb-relationship-role >
            <ejb-relationship-role-name>currentVersion-belongs-to-an-tFile</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
            <ejb-name>TFileContentEJB</ejb-name>
            </relationship-role-source>
            </ejb-relationship-role>

            </ejb-relation>
            <ejb-relation >
            <ejb-relation-name>MagIssue-ParentIssue</ejb-relation-name>

            <ejb-relationship-role >
            <ejb-relationship-role-name>MagIssue-belongs-to-a-ParentIssue</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source >
            <ejb-name>MagazineIssueEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>parentIssue</cmr-field-name>
            </cmr-field>
            </ejb-relationship-role>

            <ejb-relationship-role >
            <ejb-relationship-role-name>ParentIssue-has-many-MagIssues</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
            <ejb-name>MagazineIssueEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>childIssues</cmr-field-name>
            <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
            </ejb-relationship-role>

            </ejb-relation>
            <ejb-relation >
            <ejb-relation-name>GroupMembership</ejb-relation-name>

            <ejb-relationship-role >
            <ejb-relationship-role-name>User-has-Groups</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source >
            <ejb-name>UserEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>groups</cmr-field-name>
            <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
            </ejb-relationship-role>

            <ejb-relationship-role >
            <ejb-relationship-role-name>Group-has-Users</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source >
            <ejb-name>GroupEJB</ejb-name>
            </relationship-role-source>
            </ejb-relationship-role>

            </ejb-relation>
            <ejb-relation >
            <ejb-relation-name>Workflow-WorkflowBluePrint</ejb-relation-name>

            <ejb-relationship-role >
            <ejb-relationship-role-name>Workflow-has-WorkflowBluePrint</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
            <ejb-name>WorkFlowEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>bluePrint</cmr-field-name>
            <cmr-field-type>java.util.Collection</cmr-field-type>
            </cmr-field>
            </ejb-relationship-role>

            <ejb-relationship-role >
            <ejb-relationship-role-name>WorkFlowBlueprint-belongs-to-a-Workflow</ejb-relationship-role-name>
            <multiplicity>Many</multiplicity>
            <relationship-role-source >
            <ejb-name>WorkFlowBlueprintEJB</ejb-name>
            </relationship-role-source>
            </ejb-relationship-role>

            </ejb-relation>
            <ejb-relation >
            <ejb-relation-name>Publication-WebSite</ejb-relation-name>

            <ejb-relationship-role >
            <ejb-relationship-role-name>WebSite-belongs-to-a-Publication</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <relationship-role-source >
            <ejb-name>WebSiteEJB</ejb-name>
            </relationship-role-source>
            <cmr-field >
            <cmr-field-name>publication</cmr-field-name>
            </cmr-field>
            </ejb-relationship-role>

            <ejb-relationship-role >
            <ejb-relationship-role-name>Publication-owns-many-WebSites</ejb-relationship-role-name>
            <multiplicity>One</multiplicity>
            <r