Re: XML vs Annotations

2010-02-08 Thread Simone Tripodi
Thanks a lot, I'll let you know my experiments result :P http://people.apache.org/~simonetripodi/ On Mon, Feb 8, 2010 at 5:53 PM, Clinton Begin wrote: > Look in the Configuration class.  It's the center of the iBATIS universe. > > Clinton > > On Mon, Feb 8, 2010 at 7:39 AM, Simone Tripodi > w

Re: XML vs Annotations

2010-02-08 Thread Clinton Begin
Look in the Configuration class. It's the center of the iBATIS universe. Clinton On Mon, Feb 8, 2010 at 7:39 AM, Simone Tripodi wrote: > Hi Clinton, > can you tell me please where I can start looking for configuration > classes? After reading your email I started thinking about realizing a > "p

Re: XML vs Annotations

2010-02-08 Thread Simone Tripodi
Hi Clinton, can you tell me please where I can start looking for configuration classes? After reading your email I started thinking about realizing a "polyglot" iBatis, extending the existing classes, allowing it reading the configuration files in various formats... Maybe I'm just too much a dreame

Re: XML vs Annotations

2010-02-08 Thread Daryl Stultz
On Sun, Feb 7, 2010 at 4:48 PM, Guy Rouillier wrote: > I don't know if what you are trying to do is possible, but it seems to > defeat the intent of iBATIS (remove all the routine JDBC code and replace it > with declarations, so your Java code becomes much simpler.) > > Simpler Java code is nice,

Re: XML vs Annotations

2010-02-07 Thread Clinton Begin
The current APIs are optimized for "configurators", such as XML and Annotations. If you guys are going to go this route, you'll probably want to create your own wrapper classes to simplify the configuration. Clinton On Sun, Feb 7, 2010 at 2:48 PM, Guy Rouillier wrote: > I don't know if what you

Re: XML vs Annotations

2010-02-07 Thread Guy Rouillier
I don't know if what you are trying to do is possible, but it seems to defeat the intent of iBATIS (remove all the routine JDBC code and replace it with declarations, so your Java code becomes much simpler.) If you are going to add lots of Java code to build the mappings, you might as well jus

Re: XML vs Annotations

2010-02-06 Thread Simone Tripodi
Hi all, I'm *very* interested too on this last topic, I'd really would like to know more about it :P Have a good weekend, Simo http://people.apache.org/~simonetripodi/ On Sat, Feb 6, 2010 at 11:21 PM, Daryl Stultz wrote: > > > On Sat, Feb 6, 2010 at 3:29 PM, Daryl Stultz wrote: >> >> >> Hmm,

Re: XML vs Annotations

2010-02-06 Thread Daryl Stultz
On Sat, Feb 6, 2010 at 3:29 PM, Daryl Stultz wrote: > > Hmm, I may be stuck then on finding my own "style" of using iBATIS. > > > I'm wondering if I can do away with XML and annotations and build the mappings programmatically. So far I've done this: SqlSession session = factory.openSession(); fi

Re: XML vs Annotations

2010-02-06 Thread Daryl Stultz
On Sat, Feb 6, 2010 at 1:51 AM, Guy Rouillier wrote: > references." I'm pretty experienced with SQL but It's not clear to me >> exactly what a "join mapping" is. At first I thought it was a >> many-to-many. Can someone give me an example? >> > > Take a look in the documentation in the section titl

Re: XML vs Annotations

2010-02-05 Thread Guy Rouillier
On 2/5/2010 5:15 PM, Daryl Stultz wrote: Hello, I think it's great that iBatis supports both XML and annotations. I don't necessarily prefer one over the other but I kind of prefer to do everything one way. The docs state that "You will notice that join mapping is not supported via the Annotatio