Thanks for pointing me where the finder properties go,
but I'm still missing something.

When calling findAll() it still isn't sorting. In fact, I defined
the <order> something that should error (that is, made the
order "nameLast ERROR") and no error occurred, so it
still isn't being used.

Everything is working with these config files except the
order from findAll(). Thanks again.

ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>

<ejb-jar>
     <description>Profile Management</description>
     <display-name>Profile Management</display-name>

     <enterprise-beans>
          <entity>
               <description>Profile</description>
               <ejb-name>Profile</ejb-name>
               <home>com.base2inc.bean.entity.profile.ProfileHome</home>
               <remote>com.base2inc.bean.entity.profile.Profile</remote>

<ejb-class>com.base2inc.bean.entity.profile.ProfileBean</ejb-class>
               <persistence-type>Container</persistence-type>
               <prim-key-class>java.lang.Long</prim-key-class>
               <reentrant>False</reentrant>
               <cmp-version>2.x</cmp-version>

<cmp-field><field-name>id</field-name><jdbc-type>BIGINT</jdbc-type></cmp-fie
ld>
               <cmp-field><field-name>profileHandle</field-name></cmp-field>
               <cmp-field><field-name>password</field-name></cmp-field>
               <cmp-field><field-name>nameFirst</field-name></cmp-field>
               <cmp-field><field-name>nameInitial</field-name></cmp-field>
               <cmp-field><field-name>nameLast</field-name></cmp-field>
               <cmp-field><field-name>email</field-name></cmp-field>
               <primkey-field>id</primkey-field>
          </entity>
     </enterprise-beans>

     <assembly-descriptor>
          <container-transaction>
               <method>
                    <ejb-name>Profile</ejb-name>
                    <method-name>*</method-name>
               </method>
               <trans-attribute>Required</trans-attribute>
          </container-transaction>
     </assembly-descriptor>

</ejb-jar>

jaws.xml:

<?xml version="1.0" encoding="UTF-8"?>
<jaws>
    <enterprise-beans>
        <entity>
            <ejb-name>Profile</ejb-name>
            <finder>
                <name>findAll</name>
                <query />
                <order>nameLast</order>
                <read-ahead>false</read-ahead>
            </finder>
        </entity>
    </enterprise-beans>
</jaws>

jboss.xml:

<?xml version="1.0" encoding="UTF-8"?>
<jboss>
     <secure>false</secure>
     <container-configurations />

     <enterprise-beans>
          <entity>
               <ejb-name>Profile</ejb-name>
               <jndi-name>profile</jndi-name>
               <configuration-name />
          </entity>
     </enterprise-beans>
</jboss>



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to