Re: [JBoss-user] sorting with findAll()

2001-10-28 Thread danch

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 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 for me in postgresql)
 
 I'll look into a fix for this.
 
 danch
 
 Dmitri Colebatch wrote:
 
 
 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
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 



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



Re: [JBoss-user] sorting with findAll()

2001-10-19 Thread danch

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 for me in postgresql)

I'll look into a fix for this.

danch

Dmitri Colebatch wrote:

 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
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 



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



[JBoss-user] sorting with findAll()

2001-10-18 Thread Frank Morton

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 /
ordernameLast/order
read-aheadfalse/read-ahead
/finder
/entity
/enterprise-beans

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.

I also tried putting the finder section into the ejb-jar.xml for the
bean, but that didn't work either.

I tried adding ASC and DESC to the order in case that was required.

I'm running under solaris with 2.4.3-tomcat.

What am I doing wrong? Thanks.




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



Re: [JBoss-user] sorting with findAll()

2001-10-18 Thread danch

'standardjaws.xml' is the defaults file. You can override that in a
'jaws.xml' which you place in META-INF in your ejb-jar file. The XML snippet
you have below should go in a jaws.xml in your META-INF directory.


-danch

- Original Message -
From: Frank Morton [EMAIL PROTECTED]
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
 ejb-nameProfile/ejb-name
 finder
 namefindAll/name
 query /
 ordernameLast/order
 read-aheadfalse/read-ahead
 /finder
 /entity
 /enterprise-beans

 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.

 I also tried putting the finder section into the ejb-jar.xml for the
 bean, but that didn't work either.

 I tried adding ASC and DESC to the order in case that was required.

 I'm running under solaris with 2.4.3-tomcat.

 What am I doing wrong? Thanks.




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



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



Re: [JBoss-user] sorting with findAll()

2001-10-18 Thread Fred Loney

standardjaws.xml holds default settings and type mappings. jaws.xml
holds your app's EB-to-db config. jaws.xml is packaged in the ejb .jar.

Fred Loney
Spirited Software, Inc.
www.spiritedsw.com


- Original Message -
From: Frank Morton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 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
 finder
 namefindAll/name
 query /
 ordernameLast/order
 read-aheadfalse/read-ahead
 /finder
 /entity
 /enterprise-beans

 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.

 I also tried putting the finder section into the ejb-jar.xml for the
 bean, but that didn't work either.

 I tried adding ASC and DESC to the order in case that was required.

 I'm running under solaris with 2.4.3-tomcat.

 What am I doing wrong? Thanks.




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



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



Re: [JBoss-user] sorting with findAll()

2001-10-18 Thread Frank Morton

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
 descriptionProfile Management/description
 display-nameProfile Management/display-name

 enterprise-beans
  entity
   descriptionProfile/description
   ejb-nameProfile/ejb-name
   homecom.base2inc.bean.entity.profile.ProfileHome/home
   remotecom.base2inc.bean.entity.profile.Profile/remote

ejb-classcom.base2inc.bean.entity.profile.ProfileBean/ejb-class
   persistence-typeContainer/persistence-type
   prim-key-classjava.lang.Long/prim-key-class
   reentrantFalse/reentrant
   cmp-version2.x/cmp-version

cmp-fieldfield-nameid/field-namejdbc-typeBIGINT/jdbc-type/cmp-fie
ld
   cmp-fieldfield-nameprofileHandle/field-name/cmp-field
   cmp-fieldfield-namepassword/field-name/cmp-field
   cmp-fieldfield-namenameFirst/field-name/cmp-field
   cmp-fieldfield-namenameInitial/field-name/cmp-field
   cmp-fieldfield-namenameLast/field-name/cmp-field
   cmp-fieldfield-nameemail/field-name/cmp-field
   primkey-fieldid/primkey-field
  /entity
 /enterprise-beans

 assembly-descriptor
  container-transaction
   method
ejb-nameProfile/ejb-name
method-name*/method-name
   /method
   trans-attributeRequired/trans-attribute
  /container-transaction
 /assembly-descriptor

/ejb-jar

jaws.xml:

?xml version=1.0 encoding=UTF-8?
jaws
enterprise-beans
entity
ejb-nameProfile/ejb-name
finder
namefindAll/name
query /
ordernameLast/order
read-aheadfalse/read-ahead
/finder
/entity
/enterprise-beans
/jaws

jboss.xml:

?xml version=1.0 encoding=UTF-8?
jboss
 securefalse/secure
 container-configurations /

 enterprise-beans
  entity
   ejb-nameProfile/ejb-name
   jndi-nameprofile/jndi-name
   configuration-name /
  /entity
 /enterprise-beans
/jboss



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



Re: [JBoss-user] sorting with findAll()

2001-10-18 Thread Dmitri Colebatch

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


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