Guys,

I played around for a couple of days trying to get the standard
findByX methods to work properly.  I believe it is broken in the
latest binary version.  I did get it to work using yesterday's CVS
.zip snapshot.  The only problem then is that the server complains
about the PostgreSQL jaws entries, which you can delete from your
bean's jaws.xml.

HTH,

David


> Hi,
>
> I am currently writing documentation on how to define CMP finders in
> jboss. It will be posted soon on the website (today?), I just need more
> testing.
>
>
> In short:
>
> - you don't need anything in jaws.xml for findByPrimaryKey, findAll,
> findByXX (XX = any cmp-field): jaws will automatically generate them *if
> you declare them in your home interface*.
>
> - custom finders: declare it in your home interface, and add a finder
> tag in jaws.xml.
> name: just the name of the finder
> query: the WHERE part of the query, without the WHERE word. You can
> refer to arguments of the finder with {0}, {1}...
> order: the ORDER BY part of the query, without the ORDER BY words.
>
> Hope this helps,
>
> Sebastien
>
>
> Francis Pouatcha wrote:
> >
> > Hi,
> >
> > I have a Customer bean with the following finder method:
> >
> > public Collection findByAddress (String address);
> >
> > How to define it finder in JAWS.
> >
> > - in the collumn named "Finder Name", should I just enter
> > "findByAddress" or the whole method definition "findByAddress(String
> > addr)"
> >
> > - in the collumn named "Query" I'm trying the following:
> >
> > select name from customer where address=addr
> >
> > - What to enter in the collumn named Order?
> >
> > any help will be appreciated!
> >
> > Thanks.
> >
> > --
> > [EMAIL PROTECTED]
> >
> > MATHEMA Software GmbH
> > N�gelsbachstra�e 25 b
> > 91052 E r l a n g e n
> > D e u t s c h l a n d
> > Tel +49(0)9131/8903-0
> > Fax +49(0)9131/8903-55
> > http://www.mathema.de
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Problems?:           [EMAIL PROTECTED]
>
>
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to