[iBatis 3] Cache troubles

2009-11-17 Thread Simone Tripodi
Hi all guys, I've been doing some experiment using the last beta of iBatis 3 and I've the feeling you happily fixed the inglorious IBATIS-555 issue about the CacheKey unique hashcode generation on different JVMs :) Now I've been porting my old stuff to the new iBatis implementation and everything

Re: [iBatis 3] Cache troubles

2009-11-17 Thread Simone Tripodi
cache won't be updated with > potentially erroneous or inconsistent data. > > Hope that helps, > Clinton > > On Tue, Nov 17, 2009 at 1:23 PM, Simone Tripodi > wrote: >> >> Hi all guys, >> I've been doing some experiment using the last beta o

Re: [iBatis 3] Cache troubles

2009-11-18 Thread Simone Tripodi
y this lack? Is there any way to obtain the cache group, speaking in iBatis2 therms? Thanks in advance, best regards Simone [1] http://code.google.com/p/memcached-tag/ On Wed, Nov 18, 2009 at 7:49 AM, Simone Tripodi wrote: > Hi Clinton, > thanks for your kind reply, I'll let you know ASAP

Re: [iBatis 3] Cache troubles

2009-11-18 Thread Simone Tripodi
>> is a patched version called Memcached-tags[1] but isn't officially >> supported :( >> Can you provide me please any idea how to supply this lack? Is there >> any way to obtain the cache group, speaking in iBatis2 therms? >> Thanks in advance, best regards >

Re: [iBatis 3] Cache troubles

2009-11-22 Thread Simone Tripodi
Hi all, do you have any suggestion/hint please? Have a nice Sunday :) Simone On Wed, Nov 18, 2009 at 9:08 PM, Simone Tripodi wrote: > Hi Clinton, > sorry my mail was a little confusing - I took advantage from some > spare time during the work to reply quickly :P > > So, things

[ibatis3] Throubles on caching pt2

2009-12-08 Thread Simone Tripodi
Hi all guys, I've been porting my old stuff to the version 3 and I noticed queries are stored only and only if I force the session commit. I didn't understand if this is the right way to proceed or maybe I miss something, can anyone please give me a more detailed explaination? This morning I switch

Re: [ibatis3] Throubles on caching pt2

2009-12-10 Thread Simone Tripodi
hought we fixed that.  Just in case, file a jira ticket and > I'll have a look. > > I believe the intended behavior is that it should always cache, unless > rollback is called. > > Clinton > > On 2009-12-09, Simone Tripodi wrote: >> Hi all guys, >> I've b

Enjoy the power of iBatis3 + google-guice2

2009-12-21 Thread Simone Tripodi
integrates other nice tools that are perfectly designed to cooperate with iBatis, it would be nice if iBatis users that are used to DI through Guice could provide us both positive and negatives feedbacks. Best Regards, Simone Tripodi Marco Speranza [1] http://ibaguice.googlecode.com/svn/site/1.0

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-21 Thread Simone Tripodi
se Guice, so I'll definitely check this out. > Cheers, > Clinton > > On Mon, Dec 21, 2009 at 9:32 AM, Simone Tripodi > wrote: >> >> Hi Guys, >> a friend of mine and I are developing a mini-library that alleviates >> to the users the issue of creating and in

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-22 Thread Simone Tripodi
uff (transaction manager) directly I guess. > > -Original Message- > From: Simone Tripodi [mailto:simone.trip...@gmail.com] > Sent: Monday, December 21, 2009 4:23 PM > To: user-java@ibatis.apache.org > Subject: Re: Enjoy the power of iBatis3 + google-guice2 > > Hi guys, >

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-22 Thread Simone Tripodi
pring is quite the opposite, and that seems to be working well for them. >  So I would expect iBATIS support to be built in or contributed to their > project sometime soon. > Clinton > > On Mon, Dec 21, 2009 at 2:22 PM, Simone Tripodi > wrote: >> >> Hi guys, >>

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-27 Thread Simone Tripodi
clude the whole packages. Feedbacks are obviously welcome, please let us know what you think about it!!! Best regards, Simone Tripodi Marco Speranza On Tue, Dec 22, 2009 at 2:38 PM, Simone Tripodi wrote: > Hi Clinton, > thank you for your kind reply :) I understand your point of you and >

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-28 Thread Simone Tripodi
Hi Stef, thanks for your interest on our small effort :) See my comments below: > Sounds extremely interesting... > Does it also have the ability to rollback transactions and wrap Ibatis > exceptions into some generic DataAccessException class? Sure, as described in the small table in http://ibag

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-28 Thread Simone Tripodi
sqlmaps for each > project so that they could be automatically assembled into a single > sqlmapconfig. > Basically, each project had a set of tables it needed and only one app > project importing them all. > thanks, > -- yuri > On Mon, Dec 28, 2009 at 2:19 AM, Simone Tripodi

Re: Enjoy the power of iBatis3 + google-guice2

2009-12-29 Thread Simone Tripodi
ally assembled into a single >> > sqlmapconfig. >> > Basically, each project had a set of tables it needed and only one app >> > project importing them all. >> > thanks, >> > -- yuri >> > On Mon, Dec 28, 2009 at 2:19 AM, Simone Tripodi >> >

Re: Issue with Interface Mapper that Extends an Interface itself

2009-12-30 Thread Simone Tripodi
Hy guys, any news about this issue? I just met the case when a mapper needs to extend an existing one, but mapper methods are not found :( Thanks in advance!!! Simone Tripodi On Fri, Dec 11, 2009 at 11:27 PM, Soks86 wrote: > > Sorry for not including this in my previous response. >

Possible race condition using org.apache.ibatis.cache.Cache#hasKey ?

2009-12-31 Thread Simone Tripodi
urage the community to be sensible to this kind of potential issues. What do you think about it? Have a nice end of the year party and see you next year! :D Best regards, Simone Tripodi [1] http://ibaguice.googlecode.com/svn/site/1.0-SNAPSHOT/caching.html [2] http://memcached.org/

Re: Possible race condition using org.apache.ibatis.cache.Cache#hasKey ?

2009-12-31 Thread Simone Tripodi
he storage. Moreover, Cache.NULL_OBJECT has to be Serializable. Happy new year and tanks for your replies!!! :) Best regards, Simone Tripodi On Thu, Dec 31, 2009 at 5:11 PM, Clinton Begin wrote: > PS:  I just had a look, and I doubt there's any chance of a race condition > here... there

Re: Possible race condition using org.apache.ibatis.cache.Cache#hasKey ?

2009-12-31 Thread Simone Tripodi
ROFL, I feel so nerd, I should restart learning _natural_ languages and having more social life :D HAPPY 2010!!! On Thu, Dec 31, 2009 at 7:53 PM, Clinton Begin wrote: > LOL... it was pseudocode in the middle of a sentence dude.  :-) > > > > On Thu, Dec 31, 2009 at 11:29 AM,

Re: Possible race condition using org.apache.ibatis.cache.Cache#hasKey ?

2010-01-01 Thread Simone Tripodi
Hi Clinton, I just open a Jira issue about this topic, you can find it on https://issues.apache.org/jira/browse/IBATIS-724 Best regards and happy new year! Simone On Thu, Dec 31, 2009 at 11:09 PM, Simone Tripodi wrote: > ROFL, I feel so nerd, I should restart learning _natural_ languages &g

Re: [Announcement] ibatis addons project site

2010-01-04 Thread Simone Tripodi
Boss-Cache) integration , hosted on google-code: http://code.google.com/p/ibaguice/ (here you can find the snapshot site: http://ibaguice.googlecode.com/svn/site/1.0-SNAPSHOT/index.html) We are much more that pleased to merge our efforts to yours, so please take us in consideration :) Best regards Simo

Re: [Announcement] iBATIS 3.0 beta 8 released

2010-01-12 Thread Simone Tripodi
Hi Nathan, that's great!!! I updated my dependency and it works like a charm, congrats ;) All the best, Simo On Tue, Jan 12, 2010 at 5:56 AM, Nathan Maves wrote: > Beta 8 is out. There were only 4 issues discovered during this beta > period, but more importantly, they were quite minor and quite l

Mapper interfaces inheritance

2010-01-12 Thread Simone Tripodi
Hi all guys, I find very important fixing the IBATIS_655[1] issue before releasing the final version, is there any chance any iBatis committer can apply the patch? Unfortunately I don't have spare time otherwise I would more than pleased to provide my help. Have a nice day, best regards :) Simo [1

Re: Mapper interfaces inheritance

2010-01-12 Thread Simone Tripodi
Hi Clinton, thanks a *lot*, very very appreciated! Bets regards, Simo On Tue, Jan 12, 2010 at 3:58 PM, Clinton Begin wrote: > I'll have a look. > > On Tue, Jan 12, 2010 at 3:11 AM, Simone Tripodi > wrote: >> >> Hi all guys, >> I find very important fi

Re: iBatis 3 transaction isolation level control

2010-01-14 Thread Simone Tripodi
Hi all, *very* interesting point, I'll follow the thread so I'll integrate the transaction isolation in the @Transactional annotation in iBaguice. All the best, Simo On Wed, Jan 13, 2010 at 4:41 PM, Clinton Begin wrote: > Not yet.  The plan is to pass it as a parameter to .openSession().  Somehow

Re: mapping flat data int list of objects

2010-01-15 Thread Simone Tripodi
Hi Michael, in both iBatis v2 and v3 there are TypeHandlers, well explained in the user guide manuals. If you're using iBatis2, you can find it on page 30; if you're using iBtais3, you can find it on page 13. Hope this helps, Simo On Thu, Jan 14, 2010 at 10:11 PM, Remijan, Michael wrote: > I ha

Re: Ibatis in the cloud

2010-01-18 Thread Simone Tripodi
Hi Glenn, I recently deployed a set of web services, realized on top of ibatis 2, in a cluster of 3 nodes; the application was installed in each node of the "cloud". The difficulty I had to face[1] is that, using memcached as a distribuited caching layer, since ibatis 2 keys generation is not uniqu

Re: iBatis 3 transaction isolation level control

2010-01-24 Thread Simone Tripodi
; SqlSessionFactory now has two new openSession methods... > > SqlSession openSession(TransactionIsolationLevel level); > SqlSession openSession(ExecutorType execType, TransactionIsolationLevel > level); > > Clinton > > > On Thu, Jan 14, 2010 at 1:38 AM, Simone Tripod

is 3.0-beta-9 missing from central repo?

2010-01-24 Thread Simone Tripodi
Hi all guys, after noticed on the ibatis website that the 3.0-beta-9 is out, I switched in my pom to the new version, but is not resolved from the central repository... can anyone please tell me how I can get it using maven? Many thanks in advance, best regards!!! Simo http://people.apache.org/~s

Re: is 3.0-beta-9 missing from central repo?

2010-01-24 Thread Simone Tripodi
it manually into your local m2 repo > if you need it right now. > > On Jan 24, 2010, at 9:59 AM, Simone Tripodi wrote: > > Hi all guys, > after noticed on the ibatis website that the 3.0-beta-9 is out, I switched > in my pom to the new version, but is not resolved from the ce

Re: Mapper parsing problem

2010-02-03 Thread Simone Tripodi
Hi all, just my 2cents: even if I'm familiar with XML SQL maps, I've always found the property parameter a little confusing into iBatis, since adds a new syntax in the XML syntax, indeed I was a great fan of iBatis2 ParameterMap. IMHO a "nice to have" in the SQL map is something like: instea

Re: Mapper parsing problem

2010-02-03 Thread Simone Tripodi
://people.apache.org/~simonetripodi/ On Wed, Feb 3, 2010 at 9:19 PM, Simone Tripodi wrote: > Hi all, > just my 2cents: even if I'm familiar with XML SQL maps, I've always > found the property parameter a little confusing into iBatis, since > adds a new syntax in the XML syntax, in

Re: Mapper parsing problem

2010-02-03 Thread Simone Tripodi
Hi all guys, sorry but I explained my "2 cents idea" in the wrong way :P Indeed, in my dreams, I'd completely _remove_ the #{} syntax, IMHO it should be simpler reading a 100% pure XML SQL map like: update ORDER_ENTRY.CONTACT set DEPT_ID = STATE_ID = TIME_ZONE_ID = instead of update ORD

Re: How to throw an exception when a property from a parameter map is null or missing?

2010-02-04 Thread Simone Tripodi
Hi, personally I totally agree with Clinton, generally speaking it should be a task of a higher level of applications, validations seems easy but it could become so complex that trying to mix it with the persistence layer could be painful; also Hibernate guys have been tried but at the end they cre

Re: Mapper parsing problem

2010-02-04 Thread Simone Tripodi
d way of > the majority, and second, because we need a parameter syntax that is > compatible with other configuration options, like annotations or JSON, etc. > > Clinton > > On Thu, Feb 4, 2010 at 12:44 AM, Simone Tripodi > wrote: >> >> Hi all guys, >> sorry

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-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 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 a

Re: iBatis 3.0 minimal complete example

2010-02-11 Thread Simone Tripodi
Great, I'll use your sample as the foundation of the JPetStore "iBaGuice version" Thanks a lot, very appreciated, Simo http://people.apache.org/~simonetripodi/ On Thu, Feb 11, 2010 at 2:21 AM, Clinton Begin wrote: > Anyone and everyone is welcome (and encouraged) to create a JPetStore > implem

Re: integrating lucene with ibatis - advice wanted

2010-03-16 Thread Simone Tripodi
Hi Andrius, very nice to meet you and congratulations for the idea, I fount it brilliant. These are just my 2 cents. generally speaking, I'd suggest you to implement the solution number 1: 1 interceptor and 1 annotation, nothing more, clear and reusable solution; 2 is also great and easy to impleme

Re: [ANNOUNCEMENT] iBATIS Project Team Moving to Google Code

2010-05-26 Thread Simone Tripodi
Hi Clinton, I'm sure you all had more than one good reason to leave the ASF home and starting a new adventure. I hope this will be the time to encourage people to submit MyBatis subprojects (3rd parts integrations, caches integrations etc etc) and join the team. Good luck!!! Simo http://people.apa