Bug Using Statement Caching With iBATIS 2.3.0 And Spring Framework?

2007-04-02 Thread Ralf Assmann
Hello everybody, once again, after getting no answers :-( Does anybody has the same problem / bug or I am the only one using statement caching? Since iBATIS 2.3.0, the statement caching is enabled. Unfortunately, I have a problem which maybe seems to be a bug. At least, I am not able to use the

Re: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Jeff Butler
Trying to follow the JavaBeans spec with wierd property names is a bit of a black art. This test case shows what Abator is doing now: http://svn.apache.org/repos/asf/ibatis/trunk/java/mapper/mapper2/tools/abator/core/test/org/apache/ibatis/abator/internal/util/JavaBeansUtilTests.java I think th

Re: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Antony Stubbs
Darn. Ah well, as long as there's a work around that's not too much hassle. From an API point of view, it doesn't make a difference though I suppose as the set/get methods still look the same with the LState as lState. Just hope I don't hit anything where I want to use the class with some other b

Re: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Clinton Begin
Yes. The JavaBeans spec is a bit off. I really don't know why they were so goofy about the lowercase letter jazz. Would it have been the end of the world to have: Employee.FirstName ...as the property? At least then we could distinguish it from a darn field and you could use any capitalizati

Re: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Antony Stubbs
Good news. Is it this http://issues.apache.org/jira/browse/IBATIS-370 issue ? It's marked as invalid. So we have to work with this? "This isn't a bug - it is a peculiarity in the Javabeans spec. It turns out that it is impossible to have a property with only the first letter being lower case. Y

Re: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Jeff Butler
There is a bug in Abator 1.0 releted to this. The bug has fixed in SVN for some time, so if you download the new source build it yourself things will be better. Jeff Butler On 4/2/07, Antony Stubbs <[EMAIL PROTECTED]> wrote: Yes I agree. My properties *were* myProperty format, not MyPropert

RE: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Antony Stubbs
Yes I agree. My properties *were* myProperty format, not MyProperty - as Abator generates them. The problem I've found, is that for *every* table in my dB that contains a column name of the pattern x_... (ie. where the first letter is lowercase and followed by an underscore), iBatis fails, c

RE: No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Daniel Pitts
Its my understanding that you're property name should start with a lowercass letter, not an uppercase letter. getMyProperty() will get the "myProperty" property. There is no "MyProperty", and no way to create one, short of implementing a BeanInfo class. Who wants to do that? And I don't think iBA

No writeable property in class. Bug? Strange work arounds.

2007-04-02 Thread Antony Stubbs
I think I have a similar problem to http://www.nabble.com/There-is-no-WRITEABLE-property-called-%27UserId%27-in-AppUser-tf1404646.html#a3789203 this thread . I have some columns named c_value, l_state etc in the db (I can't change the scheme) and the abator generated code complains that "There is

Re: Anemic Domain Model and iBatis

2007-04-02 Thread Chris Lamey
Hello, There's nothing that says the model objects you use to get things in and out of the relational database have to be the ones you present in higher levels. iBATIS doesn't dictate your object model. >From the posts I see on this list, a lot of people use a intermediate layer (or two or three

RE: Anemic Domain Model and iBatis

2007-04-02 Thread Daniel Pitts
This is something I've often thought about in regards to ANY ORM. iBATIS and Hibernate. I've come up with two solutions. One, add behavior to your POJOs, and ask that consumers of your classes don't use the getters/setters which iBATIS uses. Two, Create behavior rich classes which hold/own the dat

RE: Caching problems

2007-04-02 Thread Niels Beekman
Did you enable caching globally in the config file? Niels -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: maandag 2 april 2007 17:54 To: user-java@ibatis.apache.org Subject: Caching problems Hi all, I'm having a bit of a problem with caching. I have

RE: Caching problems

2007-04-02 Thread Brendan . McKenna
Hi again, Further your suggestion I explicitly set cacheModelsEnabled='true' in the element, and now everything works as expected. I guess it's a documentation bug then Thanks for your help. Brendan

Caching problems

2007-04-02 Thread Brendan . McKenna
Hi all, I'm having a bit of a problem with caching. I have (I believe) set it up properly in my SqlMap file (see below). I have a program that executes the 'getAllFull' query twice, however, and both times I am seeing the query being executed in the output log messages (see a little f

RE: Caching problems

2007-04-02 Thread Brendan . McKenna
Hi Niels, No, I didn't. According to the documentation I have (the 2.0 Developer Guide that came with the iBATIS download), it's enabled by default. I'm presuming that you're talking about the setting here, though. I could well have missed it somewhere else, though Tha

Anemic Domain Model and iBatis

2007-04-02 Thread Cihat Altuntaş
What do you think about iBatis POJOs and Anemic Domain model that martin fowler describes : http://www.martinfowler.com/bliki/AnemicDomainModel.html iBatis uses POJOs like anemic domain model. Most of the classes only have getter and setter methods. Is this domain model or just DTO or Value Object