Help with ticket IBATIS-225

2006-03-30 Thread Paul Benedict
I have a business need for issue 225: http://issues.apache.org/jira/browse/IBATIS-225 It's too cumbersome to repeat a large result set mapping in another query when eager fetching is required (joining to get a related object). I should be able to use @resultMap without needing a collection. I am

Re: Help with ticket IBATIS-225

2006-04-06 Thread Paul Benedict
I can have a look at it. I'm not sure what's involved, as that wasn't the > original idea behind @resultMap. On the surface, it looks simple. > > > Cheers, > Clinton > > > On 3/30/06, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > >

Re: Help with ticket IBATIS-225 [commiters especially]

2006-04-06 Thread Paul Benedict
team and committing it. > > If you like, feel free to email the dev list and ask for help from others. > > Cheers, > Clinton > > On 4/6/06, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > > Clinton, I have some time to devote to this. Do you? Here's my th

Cannot find sqlmap in jar - new bug

2006-06-10 Thread Paul Benedict
I am using version 2.1.5.582 My web application has a sqlMapConfig.xml file which is the bootstrap config for ibatis. But the actual configuration files which it refers ( elements) are in a jar. Has anyone had this problem? I have verified that exploding the jar into my WEB-INF/classes directo

Re: Cannot find sqlmap in jar - new bug

2006-06-10 Thread Paul Benedict
found. --- Brandon Goodin <[EMAIL PROTECTED]> wrote: > I place sqlmapconfig.xml in my jars without issue. Please state the > version of ibatis you are using and post the code you are using to > load your sqlmap config. > > Brandon > > On 6/10/06, Paul Benedict <[EMAI

Re: Cannot find sqlmap in jar - new bug

2006-06-10 Thread Paul Benedict
As for code, no code. It's all configuration (see previous email). I am using Spring to load this. --- Paul Benedict <[EMAIL PROTECTED]> wrote: > Brandon, > > I may have missed getting my configuration across. Here's the problem: > > 1. sqlmap

Re: Cannot find sqlmap in jar - new bug

2006-06-10 Thread Paul Benedict
apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/src/com/ibatis/common/resources/Resources.java > > Cheers, > Clinton > > On 6/10/06, Paul Benedict <[EMAIL PROTECTED]> wrote: > > > > I am using version 2.1.5.582 > > > > My web application ha

Re: Cannot find sqlmap in jar - new bug

2006-06-10 Thread Paul Benedict
Brandon, >>All i can tell you is that i have recently created an application that uses Spring, iBATIS and is jarred up. Forgive me, but based on the feedback I am getting, I am not convinced at all that my problem is being understood. Can you give me some confidence it is? As I said, this is not

Re: Cannot find sqlmap in jar - new bug [RESOLVED]

2006-06-12 Thread Paul Benedict
Thanks everyone for your help. The problem is resolved.1) You cannot put sqlmapconfig in WEB-INF but your sqlmap files in jars. This splits the classloader and so one will be found but not the other. Either put them all in your classpath or in WEB-INF2) Do not start with a /Paul ___

Re: [Opinion] New Attribute on Tag

2006-06-19 Thread Paul Benedict
The attribute is unnecessary. Just repurose removeFirstPreprend into a non-boolean value="true|false|iterate"Jeff Butler <[EMAIL PROTECTED]> wrote: I'd like to add a new attribute to the tag: removeFirstPrependOnEachIteration (true|false).   The current removeFirstPrepend function on the tag work

Re: [Opinion] New Attribute on Tag

2006-06-19 Thread Paul Benedict
ynamic tags.  Would that be confusing?   Jeff Butler  On 6/19/06, Paul Benedict <[EMAIL PROTECTED]> wrote: The attribute is unnecessary. Just repurose removeFirstPreprend into a non-boolean value="true|false|iterate" Jeff Butler <[EMAIL PROTECTED]> wrote: I'd like t

Re: [jira] Commented: (IBATIS-225) Reuse resultmap for single bean property

2006-06-30 Thread Paul Benedict
Jeff, thank you so much! I look forward to the 2.2 release with great anticipation. I have not seen a release schedule for this version; do you know when it is expected to go GA? -- Paul"Open Source User (JIRA)" wrote: [ http://issues.apache.org/jira/browse/IBATIS-225?page=comments#action_1241

Re: Release Status???

2006-07-01 Thread Paul Benedict
Please provide a maven 2 pom and include the source for 2.2.0. One problem I have now is that ibatis has no source jar in M2, and so i can't step through ibatis when I'd like :-)Jeff Butler <[EMAIL PROTECTED]> wrote: Are you referencing this issue:   http://issues.apache.org/jira/browse/IBATIS-122

Re: Release Status???

2006-07-01 Thread Paul Benedict
new task I mentioned above is a SEPARATE source download that includes all of the build scripts and dev dependencies so that you can easily build the app yourself.  Basically it's to help people who don't know how to use Subversion export. Cheers,ClintonOn 7/1/06, Paul Benedict <[EMAIL P

Re: Release Status???

2006-07-01 Thread Paul Benedict
no problem stepping into iBATIS source.  But that should be another discussion thread on the user list.  This discussion is taking this thread far off topic.   Jeff Butler  On 7/1/06, Paul Benedict <[EMAIL PROTECTED]> wrote: Clinton, I use M2 with ibatis, and M2 cannot find the source. You nee

Re: Does JDBC 4.0 make iBATIS redundant?

2006-08-04 Thread Paul Benedict
I saw some JDBC 4.0 and it does not make ibatis obsolete. For instance, annotations are not inheritable but you can extend sqlmaps. Also there will always be a need for XML configuration because not everyone wants their mappings statically-linked into their code; it is impossible to change without

Re: Last call for 2.2.0

2006-08-14 Thread Paul Benedict
Will 2.2.0 be available in maven 2 format? And uploaded to ibiblio?Jeff Butler <[EMAIL PROTECTED]> wrote: Good work on multiple result sets!   I'll have a checkin with code changes and tests for IBATIS-331 later this morning, then I'll be finished.  You'll know I'm finished whan I close the JIRA ti

Re: Last call for 2.2.0

2006-08-15 Thread Paul Benedict
esearch about it.   Jeff Butler  On 8/14/06, Paul Benedict < [EMAIL PROTECTED]> wrote: Will 2.2.0 be available in maven 2 format? And uploaded to ibiblio? Jeff Butler <[EMAIL PROTECTED]> wrote: Good work on multiple result sets!   I'll have a checkin with code changes and

Working with nested interfaces: a problem to solve

2007-01-14 Thread Paul Benedict
I have this problem currently in iBATIS 2. I would prefer it be solved in 2.4, but if it is more extensive in scope, then I wouldn't mind seeing it pushed off to version 3. Here are two classes which have two immutable interfaces: interface A { class AImpl implements A { String getNa

Re: Working with nested interfaces: a problem to solve

2007-01-14 Thread Paul Benedict
n blueprints catalog, but I still think it's awful. But that's just my 2 cents - YMMV) Second thought - if you really want to do this, you can code a ResultObjectFactory and supply the concrete implementations yourself. Jeff Butler On 1/14/07, *Paul Benedict* <[EMAIL PRO

Re: Working with nested interfaces: a problem to solve

2007-01-15 Thread Paul Benedict
IS work with parameterized constructors but that is a V3 thing. Jeff Butler On 1/14/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Jeff, > > Thanks for the reply. I know not everyone likes the immutable pattern, > but I have found it tremendously useful and cuts down on a l

Re: Working with nested interfaces: a problem to solve

2007-01-15 Thread Paul Benedict
I erred at the start of 4th paragraph: It read: iBATIS errs out on #4 because it invokes BImpl.setA(), but gets back only the interface from BImpl.getA(). It should read: iBATIS errs out on #4 because it invokes setName() from BImpl.getA(), but the method doesn't exist at this level. Paul

Re: Working with nested interfaces: a problem to solve

2007-01-15 Thread Paul Benedict
is? I did and had no trouble running it. I'd be happy to send you the test case if you want, but I think it's exactly what you described. Jeff Butler On 1/15/07, *Paul Benedict* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: I erred at the star

Re: Working with nested interfaces: a problem to solve

2007-01-15 Thread Paul Benedict
erfaces require an inner resultMap so you can specify the implementation. I am glad I asked for that enhancement for 2.2 :) Also I apologize for any wasted time on both your parts! Thanks again. Paul Paul Benedict wrote: Can you send the test case? That would be great. The example I did not

Re: Direct-to-Field mappings now implemented.

2007-02-09 Thread Paul Benedict
I agree with Jeff that an alternative syntax is questionable and likely unnecessary. The syntax for accessing members of an object should be the same, regardless if the property is an instance variable or method. Rather, there should be a flag which enables direct property access which will be use

Re: Direct-to-Field mappings now implemented.

2007-02-09 Thread Paul Benedict
Poitras and Clinton, I agree. The refactoring argument is pretty strong. Property notation is script-like because the actual means to get to the value (method vs. direct-field access) is totally secondary to the intention. The developer just needs to express the path, and the framework should be

Re: Direct-to-Field mappings now implemented.

2007-02-09 Thread Paul Benedict
ld directly. Maybe the notation can be optionnal and will force iBATIS to try accessing the field first, then the getter if field is not present. Think this would do? Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Be

Re: Direct-to-Field mappings now implemented.

2007-02-10 Thread Paul Benedict
d in this thread, that you already agreed with. ;-) Clinton On 2/9/07, Paul Benedict < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > I searched the mail archives, but I am not privy to what

Re: Direct-to-Field mappings now implemented.

2007-02-10 Thread Paul Benedict
getters/setters then we'll use them. If not, then we'll use the fields directly. End of story. Jeff Butler On 2/10/07, *Paul Benedict* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: OGNL uses property notation syntax which calls getters and setters. As

Re: Direct-to-Field mappings now implemented.

2007-02-10 Thread Paul Benedict
t because we can. Maybe we > should bypass all the non-standard syntax and configuration options. If you > have getters/setters then we'll use them. If not, then we'll use the fields > directly. End of story. > > Jeff Butler > > > > > > On 2/10/07

Re: Direct-to-Field mappings now implemented.

2007-02-10 Thread Paul Benedict
st be too easy for bugs to get by unless the tool is smarter. Paul Clinton Begin wrote: So far, there's no switch to turn it on or off. I guess I'm thinking if you want to enforce that it go through methods, then write the methods. :-) Clinton On 2/10/07, Paul Benedict <[EMAIL

Re: Direct-to-Field mappings now implemented.

2007-02-10 Thread Paul Benedict
Very well. In fact, the fallback to fields may turn out to be advantageous. Let's see how it goes, as you said, and listen to the feedback. Thanks Clinton! Clinton Begin wrote: I think we need a stronger argument for a switch than "I might shoot myself in the foot". :-) It's pretty simple t

Re: Maven for Build?

2007-02-13 Thread Paul Benedict
I can offer some assistance if necessary. Ted Husted wrote: On 2/13/07, Clinton Begin <[EMAIL PROTECTED]> wrote: > With the Struts releases, we also include all the JARs needed to build > the product, which people can install locally. That would be perfect! Feel free to steal from what Wendy

Re: iBATIS for Java 2.3.0 General Availability

2007-02-17 Thread Paul Benedict
I am responding on the dev list too :-) There's two things going on: 1) An automated build numbering -- and any build numbering for that matter -- isn't needed for official distributions. All you need is the X.Y.Z scheme where X=major,Y=minor,Z=revision versions. 2) You are actually using the

Re: iBATIS for Java 2.3.0 General Availability

2007-02-17 Thread Paul Benedict
o me and easy to produce. So regardless of what build system we use, I'd like to ensure that a build number is represented on the deployable ZIP filename, the JAR file names the manifest file and the release.txt. Clinton On 2/17/07, *Paul Benedict* <

Re: iBATIS for Java 2.3.0 General Availability

2007-02-17 Thread Paul Benedict
ch them something together. Clinton On 2/17/07, *Paul Benedict* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Clinton, I understand the argument, but I am not aware of any other project at Apache that includes a build number as part of their version number. That

iBatis Blocker Bug

2007-05-12 Thread Paul Benedict
Please see my comments on: http://issues.apache.org/jira/browse/IBATIS-128 I can no longer use iBATIS until this has been fixed for JDK 5. Please add discussion comments to JIRA. Thanks! Paul

Re: iBatis Blocker Bug

2007-05-13 Thread Paul Benedict
e JIRA issue. We'll get it in on the next release. Larry On 5/13/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > Please see my comments on: > http://issues.apache.org/jira/browse/IBATIS-128 > > I can no longer use iBATIS until this has been fixed for JDK 5. Please >

[jira] Created: (IBATIS-207) Missing selectKey DTD parameter

2005-10-23 Thread Paul Benedict (JIRA)
Missing selectKey DTD parameter --- Key: IBATIS-207 URL: http://issues.apache.org/jira/browse/IBATIS-207 Project: iBatis for Java Type: Bug Versions: 2.1.5 Environment: Windows XP, MySQL Reporter: Paul Benedict Priority

[jira] Commented: (IBATIS-207) Missing selectKey DTD parameter

2005-10-24 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-207?page=comments#action_12355671 ] Paul Benedict commented on IBATIS-207: -- I believe this should be withdrawn. Although I can find no documentation supporting this idea, it seems that if I put the after

[jira] Created: (IBATIS-215) BSF for dynamic queries

2005-11-02 Thread Paul Benedict (JIRA)
BSF for dynamic queries --- Key: IBATIS-215 URL: http://issues.apache.org/jira/browse/IBATIS-215 Project: iBatis for Java Type: New Feature Components: SQL Maps Reporter: Paul Benedict While the list of tags to form dynamic queries is

[jira] Created: (IBATIS-216) Optional property in resultmap

2005-11-02 Thread Paul Benedict (JIRA)
Optional property in resultmap -- Key: IBATIS-216 URL: http://issues.apache.org/jira/browse/IBATIS-216 Project: iBatis for Java Type: New Feature Reporter: Paul Benedict I would find it useful to have optional properties in a

[jira] Commented: (IBATIS-143) Remove blanks in SQL

2005-11-03 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-143?page=comments#action_12356748 ] Paul Benedict commented on IBATIS-143: -- I prefer this feature too. The problem is that I like my SQL to be listed longwise, with each column on its own line and so it

[jira] Created: (IBATIS-222) Evict from cache

2005-11-14 Thread Paul Benedict (JIRA)
Evict from cache Key: IBATIS-222 URL: http://issues.apache.org/jira/browse/IBATIS-222 Project: iBatis for Java Type: New Feature Components: SQL Maps Versions: 2.1.6 Reporter: Paul Benedict I use the cache mainly to keep in memory

[jira] Created: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2005-11-19 Thread Paul Benedict (JIRA)
Support Commons DBUtils ResultSetHandler Key: IBATIS-226 URL: http://issues.apache.org/jira/browse/IBATIS-226 Project: iBatis for Java Type: New Feature Components: SQL Maps Reporter: Paul Benedict Sometimes I need

[jira] Commented: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2005-11-20 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-226?page=comments#action_12358098 ] Paul Benedict commented on IBATIS-226: -- Jeff and Larry, thank you for your kind replies. First, remember that Java is completely dynamically linked. Just because you

[jira] Commented: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2005-11-20 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-226?page=comments#action_12358110 ] Paul Benedict commented on IBATIS-226: -- My idea was also spawned by the author of Jakarta Tapestry, Howard Lewis Ship. See his blog entry about performance using

[jira] Commented: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2005-11-30 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-226?page=comments#action_12359001 ] Paul Benedict commented on IBATIS-226: -- I haved talked with Larry privately about these ideas and now I am taking them public for review. I think we can provide

[jira] Commented: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2005-11-30 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-226?page=comments#action_12359002 ] Paul Benedict commented on IBATIS-226: -- Chaining also allows people to insert their own utility tasks such as white-space trimming (http://issues.apache.org/jira/browse

[jira] Commented: (IBATIS-222) Evict from cache

2006-03-19 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-222?page=comments#action_12371007 ] Paul Benedict commented on IBATIS-222: -- Please close this. Unfortunately I can't do it with ibatis, but I have agreed to use caching at the DAO level which satisifi

[jira] Commented: (IBATIS-225) Reuse resultmap for single bean property

2006-03-28 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-225?page=comments#action_12372163 ] Paul Benedict commented on IBATIS-225: -- It is unfortunate has a @resultMap attribute because it really doesn't do what it implies. @resultMap, on the surface, s

[jira] Commented: (IBATIS-215) BSF for dynamic queries

2006-03-28 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-215?page=comments#action_12372175 ] Paul Benedict commented on IBATIS-215: -- This issue should be closed. For complex computations, they can be done in the DAO and their value passed into the parameterClass

[jira] Commented: (IBATIS-226) Support Commons DBUtils ResultSetHandler

2006-03-28 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-226?page=comments#action_12372176 ] Paul Benedict commented on IBATIS-226: -- I think a very easy solution would to include a callback that can decode the ResultSet, if such power is needed: public Object

[jira] Commented: (IBATIS-225) Reuse resultmap for single bean property

2006-03-28 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-225?page=comments#action_12372177 ] Paul Benedict commented on IBATIS-225: -- I think the @resultMap could be overriden to not do any group-by logic for non-collection properties: > Reuse result

[jira] Commented: (IBATIS-279) Provide a ResultSet Handler

2006-04-07 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-279?page=comments#action_12373712 ] Paul Benedict commented on IBATIS-279: -- This is a duplicate of issue 226 > Provide a ResultSet Handler > --- > > Key

[jira] Commented: (IBATIS-122) Upload jars to ibiblio

2006-07-02 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-122?page=comments#action_12418866 ] Paul Benedict commented on IBATIS-122: -- This is the reference documentation for the M2 repostiory (not the same as above): http://maven.apache.org/guides/mini/guide

[jira] Commented: (IBATIS-352) Problems with Complex Properties + Sets & enums

2006-12-27 Thread Paul Benedict (JIRA)
[ http://issues.apache.org/jira/browse/IBATIS-352?page=comments#action_12461118 ] Paul Benedict commented on IBATIS-352: -- I believe I have the same problem as Andrew. However, it doesn't seem related to Sets, but any kind of colle

[jira] Commented: (IBATIS-352) Problems with Complex Properties + Sets & enums

2007-01-03 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462127 ] Paul Benedict commented on IBATIS-352: -- I actually solved the problem, but it is totally not obvious

[jira] Commented: (IBATIS-390) Property setter is required by Ibatis, even if only subproperties are being modified

2007-02-07 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471145 ] Paul Benedict commented on IBATIS-390: -- I am glad someone brought this issue up. However, I believe there

[jira] Commented: (IBATIS-143) Remove blanks in SQL

2007-02-16 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473852 ] Paul Benedict commented on IBATIS-143: -- It's not just trimming the produced output. But it is splitting th

[jira] Commented: (IBATIS-128) Detect illegal overloaded JavaBeans properties methods (e.g. setters)

2007-05-12 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495339 ] Paul Benedict commented on IBATIS-128: -- This fix has created an emergency blocker. The current solution assumes

[jira] Commented: (IBATIS-128) Detect illegal overloaded JavaBeans properties methods (e.g. setters)

2007-05-12 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495341 ] Paul Benedict commented on IBATIS-128: -- Tor Tuga, here's more information on the volatile problem. Spring

[jira] Commented: (IBATIS-128) Detect illegal overloaded JavaBeans properties methods (e.g. setters)

2007-05-13 Thread Paul Benedict (JIRA)
[ https://issues.apache.org/jira/browse/IBATIS-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12495485 ] Paul Benedict commented on IBATIS-128: -- Some good news. It turns out this is not a blocker! I mistook the ERROR