Hi!
SBowman wrote:
> I have a suggestion for a minor modification I've made to my jBoss sources,
> and I'd like to put it out to the group to see what people's opinions are on
> making this change to jBoss permanently.
>
> I removed the word "WHERE" from being automatically inserted into custom
> finder methods.
>
> What does this do? Well, it allows simple joins when looking up a record in
> the database. For example, if you wanted a way to lookup a customer's
> receipt based on a product code, you can use this finder definition (in a
> bean defining a Customer's Order):
This is such a good idea that jBoss actually does this automatically. if
your finder is of the format "findByX" where X is a CMP field, then the
finder will be autogenerated to what you have done...
Remove the finder entry and you will see this. "findAll" is also
autogenerated.
(Isn't this in the docs?? Should be)
/Rickard
--
Rickard �berg
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]