Re: Discriminator and Table per subclass

2008-03-14 Thread Eric Andres
Thank you for the hint, Ryan. I tried using the subselect, and it works. However, the way I made it work seems awkward, I think I did not fully understand your proposal. What I managed to do is this: I made a result map for the base class: . jdbcType="VARCHAR">

Re: Discriminator and Table per subclass

2008-03-14 Thread Ryan Shelley
Seems ok to me (but I'm not an expert). The only thing I might say is that if "remoteAddress" and "userAgent" do not have a 1-to-many relationship, you might as well do a single join (which it seems you want to avoid if you've got 30 tables to join), otherwise, your 1 query turns into 30+ queries

iBatis Dynamic Query

2008-03-14 Thread sgsweb
Hi, I have an issue that I cannot find a solution with iBatis.  Here's the scenario. I have two tables, say "TBL1" and "TBL2".  TBL1 has two fields say "TBL1_FLD1" and TBL1_FLD2" and TBL2 has one field, say "TBL2_FLD1". I want to create a dynamic query such that if either property for TBL1_F

Re: custom abator javaTypeResolver and eclipse

2008-03-14 Thread kbighorse
More of an Ant/Eclipse question, but how does one "add your custom class to the Ant class path in the Ant launch configuration"? I tried adding the folder with my source file in it and adding the folder with the .class file. Also, is it impossible to extend Abator and use Java file auto-merge, s