Re: Problem addressing list index in a parameter declaration

2006-10-26 Thread Clinton Begin
Looks like a bug.but I can't believe nobody has hit it before.Can you create a JIRA issue for it?Cheers,ClintonOn 10/26/06, Reuben Firmin <[EMAIL PROTECTED]> wrote: I have the following code:public class Buyer{...private Address mailingAddress;...public class Address{private List a

how to deal with one-to-many relationship?

2006-10-26 Thread xiuxiu
Hi, All,       I am a newer to ibatis And met some problems when I deal with one-to-many relationship.     There are two classes: public class Order {   private int id;   private double total;     private Set orderLineItems = new HashSet(); } public class OrderLineItem {     private

Re: SqlMapClient factory and threadlocal?

2006-10-26 Thread Clinton Begin
iBATIS doesn't try to solve this problem (well, the DAO framework used to, but that was just deprecated).I strongly suggest you look at Spring before writing your own.Cheers,Clinton On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: One more question, in a servlet environment where threads a

Re: iBatis multiple resultsets

2006-10-26 Thread Michael Lumley
Hi,I had a similar problem with timestamps and ended up solving the problem by using an Oracle function in the select statement to convert the timestamp to a string. This solution may work for you depending on the capabilities of the database you are using. CheersMichaelOn 23/10/06, Chema <[EMAIL P

Problem addressing list index in a parameter declaration

2006-10-26 Thread Reuben Firmin
I have the following code: public class Buyer { ... private Address mailingAddress; ... public class Address { private List addressLine; ... public List getAddressLine() { In my insert statement, I'm addressing this as: #mailingAddress.addressLine[0]#, #mailingAddress.addre

Re: SqlMapClient factory and threadlocal?

2006-10-26 Thread lodsmor02
One more question, in a servlet environment where threads are reused to serve requests, am I obliged to demarcate transactions (so that connections are acquired and released properly) or are there any sort of provisions in iBATIS to solve this problem? I'm wondering if I'd need to build a front con

Re: SqlMapClient factory and threadlocal?

2006-10-26 Thread Larry Meadors
Yes. Larry On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Maybe I haven't understood the architecture then. What will happen when I perform startTransaction()/commitTransaction()/endTransaction() or getCurrentConnection() in a SqlMapClient object, what's happening? Is iBATIS holding

Re: SqlMapClient factory and threadlocal?

2006-10-26 Thread lodsmor02
Maybe I haven't understood the architecture then. What will happen when I perform startTransaction()/commitTransaction()/endTransaction() or getCurrentConnection() in a SqlMapClient object, what's happening? Is iBATIS holding ThreadLocal instances itself to make things work in a multi-threaded appl

Re: SqlMapClient factory and threadlocal?

2006-10-26 Thread Larry Meadors
You can keep it as a singleton, using either spring or a static variable somewhere. There is no need to keep it in a threadlocal variable. Larry On 26 Oct 2006 19:34:28 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there a way to avoid reparsing the configuration file every time a

SqlMapClient factory and threadlocal?

2006-10-26 Thread lodsmor02
Is there a way to avoid reparsing the configuration file every time a SqlMapClient object is needed? From my understanding, a construct such as: Reader reader = Resources.getResourceAsReader("sqlMap-config.xml"); SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader); is needed to

Re: Deprecating PaginatedList interfaces and SqlMapClient method

2006-10-26 Thread Guido García Bernardo
I'm not a commiter so I don't if my opinion is going to be taken into account, but +1 ! Clinton Begin escribió: Hi all, I'd like to suggest that we deprecate the PaginatedList interface, all implementations of it, and the SqlMapClient methods that use it. Why? 1. It's currently overused

persistence layer

2006-10-26 Thread Pecelis, Sergio
I have this persistente layer: mydomain.persistence where I have ifaces and implementation of DAOs. One DAO from each Class of my business. In addition it has the XML needed by iBatis.   I have business beans in different proyects (jars). Then iBatis must have these jars. OK.   Well, t