I've just checked the fix for this into the JBoss 2.4 branch. It should
be present in the next stable release.
-danch
Frank Morton wrote:
Thanks!
Poked into the code last night and realized that (as I feared) there's a
problem with sorting the findAll this way - it ignores anything
Poked into the code last night and realized that (as I feared) there's a
problem with sorting the findAll this way - it ignores anything you put
in jaws.xml anyway. Workaround is to give it a different name,
remembering to specify a query that always evaluates to true ('1 = 1'
seems to work
I'd like to specify the sorting order with findAll() for a CMP
entity bean. First thing I tried was adding the following to
standardjaws.xml:
enterprise-beans
entity
ejb-nameProfile/ejb-name
finder
namefindAll/name
query /
]
To: [EMAIL PROTECTED]
Sent: Thursday, October 18, 2001 10:34 AM
Subject: [JBoss-user] sorting with findAll()
I'd like to specify the sorting order with findAll() for a CMP
entity bean. First thing I tried was adding the following to
standardjaws.xml:
enterprise-beans
entity
: Thursday, October 18, 2001 8:34 AM
Subject: [JBoss-user] sorting with findAll()
I'd like to specify the sorting order with findAll() for a CMP
entity bean. First thing I tried was adding the following to
standardjaws.xml:
enterprise-beans
entity
ejb-nameProfile/ejb-name
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.
On Thu, 18 Oct 2001, Frank Morton wrote:
The docs refer to jaws.xml for this, but I'm a newbie confused if
this file is now called standardjaws.xml and they are the same file
or if they are different.
that jaws.xml is in the .jar's META-INF directory with ejb-jar.xml and
jboss.xml
hth
dim