|
I gave two different tables the same alias
and then created a gateway, record, … etc using that alias w/o a problem.
This may be a gotcha if you inadvertently use the same alias twice. Beth From: Brian Kotek
[mailto:[EMAIL PROTECTED] To add one thought, maybe
the getTableForAlias() (or whatever it would be called) would be at home in the
Reactor Config object rather than the base Reactor object, but regardless of
where it lives, I think something like this should be available. On 4/13/06, Brian
Kotek <[EMAIL PROTECTED]>
wrote: Yep, I'm aware of the Query object. But what if your custom query is
complex (multiple joins, group by, aggregate or custom SQL functions, etc.)? No
matter how we slice it there will certainly be times when you simply have no
choice but to write a query out by hand (after all, that is what the custom
gateway and DAO components are for). And in those cases, it seems reasonable to
want to leverage the configuration information you supplied in the Reactor XML
file. After all, I've already told Reactor what aliases map to what tables and
it seems like being able to get to that configuration information would be very
valuable. I'm saying I think a method like the one I attached earlier should be
added to the base Reactor object to make this easy (assuming I'm not missing
some existing way to get at this configuration information). On 4/12/06, João
Fernandes < [EMAIL PROTECTED]> wrote:
|
RE: [Reactor For CF] Determine table names in custom query?
Bowden, Beth \(NIH/NIEHS\) [E] Thu, 13 Apr 2006 05:55:54 -0700
- [Reactor For CF] Determine table names in c... Brian Kotek
- [Reactor For CF] Re: Determine table n... Brian Kotek
- RE: [Reactor For CF] Determine table n... João Fernandes
- Re: [Reactor For CF] Determine tab... Brian Kotek
- RE: [Reactor For CF] Determine table n... João Fernandes
- Re: [Reactor For CF] Determine tab... Brian Kotek
- Re: [Reactor For CF] Determine... Brian Kotek
- RE: [Reactor For CF] Determine table n... Bowden, Beth \(NIH/NIEHS\) [E]
- Re: [Reactor For CF] Determine tab... Brian Kotek
- Re: [Reactor For CF] Determine... Jared Rypka-Hauer

