No reply...
Seems separate list idea is soo absurd that no one bothers to explain why ;)
On Tue, Aug 18, 2009 at 10:00 PM, Nicholoz Koka Kiknadze wrote:
> I've enjoyed much using iBatis and the mailing list was always very
> helpful.
>
> Well, now and then I have to search for answers in the ma
This works for me.
http://jakarta.apache.org/log4j/";>
McRose wrote:
>
> I configured the logging like the exa
Honestly, I don't quite understand your config. You have
So I guess you use annotations to mark transactions. In that case you all
that advice/pointcut stuff seems redundant.
Now as you do not set proxy-target-class=true dont forget that you need to
put Transactional annotations at the
Hi,
I use ibatis 2.3.4 and oscache 2.4. Executing queryForObject,
sometime return [SERIALIZABLE_NULL_OBJECT].
In this part, compare object with CacheModel.NULL_OBJECT.
com.ibatis.sqlmap.engine.mapping.statement.CachingStatement.executeQueryForObject
Object object = cacheModel.getObject(cach
I agree, meaningful names count for a great deal and can make documentation
superfluous.
Clinton Begin wrote:
>
> I'll fully admit that I'm just being a jerk about the JavaDocs... :-)
>
> JavaDocs would be a welcome addition to the iBATIS API, particularly the
> public API.
>
> Where I don't
I'll fully admit that I'm just being a jerk about the JavaDocs... :-)
JavaDocs would be a welcome addition to the iBATIS API, particularly the
public API.
Where I don't like Javadocs is like:
/**
* gets the result object
*/
public Object getResultObject() {...}
Clinton
On Thu, Aug 20, 2009
Excellent. It's working now.
I read your dislike of JavaDoc but from my point of view it would be
seriously helpful in eclipse as it would stop me having to revert back to
the manual all the time. Manuals are great for concepts. JavaDoc for the
fiddly bits. Only an opinion :thinking:
Clinton Be
According to the i3 docs it looks like for just a simple 'get' of a blog
you'd need something like:
Blog blog = null;
SqlSession session = sqlSessionFactory.openSession();
try {
BlogMapper mapper = session.getMapper(BlogMapper.class);
blog = mapper.selectBlog(id);
} finally {
session.clo
The code in SVN is very stable so you can check it out and build it
yourself to have the bug fix. The only reason I haven't released a
new version of Ibator is that I'm writing the code generators for
iBATIS3. Should be out very soon.
Jeff Butler
On Thu, Aug 20, 2009 at 3:14 AM, bhaa wrote:
>
Don't worry about the nextResultObject method. It's just used to update the
result object and the count, it probably shouldn't be public, or maybe
resultcontext should be immutable... but for now, just ignore that method.
It's used internally by the ResultSetHandler. I might make it an interface
You need to enable statement namespaces. See here for an example:
http://ibatis.apache.org/docs/tools/ibator/afterRunning.html
Jeff Butler
On Thu, Aug 20, 2009 at 3:04 AM, bhaa wrote:
>
> Hi,
>
> This is file ibatorConfig.xml:
>
>
> Apache iBATIS Ibator Configuration 1.0//EN"
> "http://ibati
Hi Clinton
Your reply was exactly what I wanted. My only problem is that I'm not quite
sure how to use the ResultContext object that is returned to me (iBatis3.0)
ResultContext has a number of methods associated with it. One tells you how
many rows were returned, another gives you a resultObject
Ibatis won't do that for you. In your dao method you need to iterate
through the list of three doubles and create the three lists of
doubles. You'd then have to return them in a map or list or something
R
Sent from my iPhone
On Aug 20, 2009, at 12:51 AM, Richard Bibb
wrote:
I think I
Here is the code snippet for the transaction management
& Here goes the code for ibatis
It's against the design of SQL and JDBC, but not iBATIS :-)
Just write a custom RowHandler (or ResultHandler in iBATIS 3).
I'll use pseudocode since I don't know which version you're using
//assume you just map the results to a HashMap originally
List list1;
List list2;
List list3;
hand
We've deprecated the DAO framework and are working on a new petstore
implementation.
Cheers,
Clinton
On Thu, Aug 20, 2009 at 1:21 AM, Chris Lewis wrote:
> Hi guys,
> I'm new to iBATIS, so I am probably missing something obvious, but is
> there a way to do a merge ie. create a record if one with
Hi Alexis
Alexis Pigeon wrote:
>
> It's a known bug, fixed in SVN, but not in any stable release:
> < https://issues.apache.org/jira/browse/IBATIS-607 >
>
> HTH,
> alexis
>
Thanks, i.e. without in any way it is impossible.
Alexander
--
View this message in context:
http://www.nabble.com/
Hi,
This is file ibatorConfig.xml:
http://ibatis.apache.org/dtd/ibator-config_1_0.dtd"; >
Generate iBATIS Artifacts is successful, but the test does not work:
public static void main(String[] args) throws SQLException {
Reader re
Hi Alexander
2009/8/20 bhaa
>
> Hi,
>
> In element, child element is optional.
> Why if to do Generate iBATIS Artifacts without this element, there is an
> exception:
>
[snip]
When this child element is present in element
> , generation is successful.
>
> Explain please why so occurs.
>
It
I think I'm probably trying to use iBatis in a way that goes against it's
design, but for what I need to do it's correct.
If I have a query like:
select Number1, Number2, Number3
from SOME_TABLE
where COL_DATE > EARLY_TIME
and COLD_DATE < LATER_TIME
Assume that the query returns many rows,
I
Hi,
In element, child element is optional.
Why if to do Generate iBATIS Artifacts without this element, there is an
exception:
Reason:
Unexpected error while running iBator.
java.lang.NullPointerExeption
Here a file ibatorConfig.xml:
http://ibatis.apache.org/dtd/ibator-config_1_0.dtd"; >
Hi guys,
I'm new to iBATIS, so I am probably missing something obvious, but is
there a way to do a merge ie. create a record if one with the primary
key doesn't exist, or insert it if it does? I've used such a function
in other ORM packages, and appreciate the removal of boilerplate. I
can't find i
22 matches
Mail list logo