Hello,
I have tried to include the xml-files using 'ENTITY', but it did not work.
http://www.ibatis.com/dtd/sql-map-config-2.dtd";> [
]>
&common;
I have also tried to use:
...
...
But then the path to the xml-file m
Your choices are to use a bean, use a result map, or look to see if
there is a way to get your driver to return the results as all lower
case.
Larry
On 10/11/05, Неверов Дмитрий <[EMAIL PROTECTED]> wrote:
> Hi, I have statement:
>
>resultClass="java.util.HashMap">
>
>
>
>
> As resu
Hi, I have statement:
As result I get a HashMap, but all keys of it in UpperCase: NPLV,
MARKA, CONC1... Can I get keys in lowercase?
--
Thanks.
mailto:[EMAIL PROTECTED]
Thank you!
It works perfectly.
2005/10/12, Larry Meadors <[EMAIL PROTECTED]>:
>
>
> Larry
>
>
> On 10/11/05, KwonNam Son <[EMAIL PROTECTED]> wrote:
> > I think iBatis resue BasicResultMap object even though the select
> > query's columns are generated dinamically.
> >
> > I use for SELECT.
> >
Larry
On 10/11/05, KwonNam Son <[EMAIL PROTECTED]> wrote:
> I think iBatis resue BasicResultMap object even though the select
> query's columns are generated dinamically.
>
> I use for SELECT.
> It's like the following.
>
> parameterClass="java.util.Map" resultClass="java.uti
I think iBatis resue BasicResultMap object even though the select
query's columns are generated dinamically.
I use for SELECT.
It's like the following.
SELECT C0, $p_mm_array[]$, TOTAL, COUNT, CODE , FLOOR(OWNER_PART)
OWNER_PART, CONTRACR_GUBN
Stored procedure calls from Java do not commit unless the stored
procedure contains a commit statement, or you issue connection.commit()
in java. Make sure auto-commit is off on the JDBC connection as this
will cause exactly the behaviour you are seeing.
Chris
-Original Message-
From: D
Hi Niels,
I think the following line in your XML is responsible:
user_id = #userId"
I'm not sure all parsers would accept a quote between 2 tags?
Cheers
Jean-Francois
-Original Message-
From: Voorhoeve, Niels {PBG} [mailto:[EMAIL PROTECTED]
Sent: Wednesday, O
If I understand you correctly, you can do something like this:
class Foo extends SqlMapClientDaoSupport {
public Foo(DataSource ds) {
super.setDataSource(ds);
ClassPathResource cpr = new
ClassPathResource("com/foo/dao/ibatisSQLMapsConfig.xml"); /*
spring class*/
SqlMapC
Hello i am using ibatis but i must to load the
datasource form one class file.
is this posible?
i have one classfile that returns one datasource.
is posible to use this file to load the conection and datasource to the data
base for ibatis?
thanks
Not currently, no.
Larry
On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is supporting this a planned future feature? Just curious.
>
> Thanks
>
> > The only way is to iterate through subobjects on the java side of
> > things and explicitly make sqlMap insert calls.
> >
> > Larry
> >
Are cache-models namespaced? That is, if I define one in a namespaced
SqlMap do I need to refer to it as
...cache-model="Namespace.modelname" ? Even from within the same
config file?
With no logging in the cache layer it's hard to see what's going on. =\
--
I tend to view "truly flexible" by a
Is supporting this a planned future feature? Just curious.
Thanks
> The only way is to iterate through subobjects on the java side of
> things and explicitly make sqlMap insert calls.
>
> Larry
>
>
> On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> Using resultMaps, I ca
It seems the issue is my tag in the element. Anyone have
an idea why the following is unacceptable?
I have version 2.1.5. As far as I can tell it conforms.
Thanks,
Niels
select
order_no ,
status_code ,
order_date ,
The only way is to iterate through subobjects on the java side of
things and explicitly make sqlMap insert calls.
Larry
On 10/11/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Using resultMaps, I can load sub-objects of a particular object
> automagically, using the "select" attr
Hello,
Using resultMaps, I can load sub-objects of a particular object
automagically, using the "select" attribute. E.g.
Is there a converse construct for saving objects? I.e., if I were to save,
can I do something like:
?
Or is the best way to iterate through subobjects on the java side of
Hi Vincent,
That's a matter of fact: in Oracle, when a stored procedure is
executed, if no exceptions are raised, Oracle automagically commits
all data modified within your procedure, no matter if there is a
'commit' statement in it.
I'm not an expert on transaction issues, but i think there is a
Hi everybody,
In a very complex transaction, composed with stored procedures and
others requests, I can't get the right behavior in case of error. I've
never had any rollback done. It seems that all the requests in the
stored proc are always done, with or without reaching the
daoManager.commi
Hi,
I'm having trouble using junit to test my ibatis setup. I am able to run
'static void main' tests within Eclipse with no problem. However when I run
the same test within Junit it fails. It seems that Ibatis has trouble
parsing the configuration files when run via Junit and generates tons of
Yes. Look at the SqlMapClient API.
Larry
On 10/11/05, Prashanth Sukumaran <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> Is there a way to limit the number of rows returned by iBatis.
>
> I want to solve this scenario
>
> Case 1) The user clicks the Order Search link and i would like to show the
>
Hi All,
Is there a way to limit the number of rows returned by iBatis.
I want to solve this scenario
Case 1) The user clicks the Order Search link and i would like to show the user the top 100 orders by default even before the user enters the search criteria. ie., instead of showing the
Thank you very much!!!
I've renamed the methods so there is no more overloading taking place and
it's picking the correct one!
Fabricio
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Larry Meadors
Sent: 11 October 2005 15:40
To: user-java@ibatis.ap
My best guess is that having overloaded setters breaks the introspection - this is why you're having strange behavior. This is also an issue with Struts' form beans - overloaded setters breaks in that case too. Best to pick one and go with it.
Jeff Butler
On 10/11/05, Fabricio M. Sanchez <[EM
Do not name two properties with the same name using different types,
this will cause problems in almost every tool that works with beans.
If you want a string version, call it expiryDateString or something else.
Polymorphic properties are a bad idea.
Larry
On 10/11/05, Fabricio M. Sanchez <[EM
Before acting on this e-mail or opening any attachments you are advised to read
The Caudwell Holdings group of companies' disclaimer at the end of this e-mail.
===
Hi,
Sorry if this show up twice - I posted it last week, and haven't yet seen it
Hi there,
I have 2 DATE fields on a MySQL table: 'expiry_date' and 'dispatched' that
are identical (apart from their names). They have a default value of NULL
and can be NULL (obviously).
They map to a java class that defines methods for both of them using
parameters String and Date, thus:
publi
I had considered having the DAO reset the entity's dirty flag, but
that won't work for lazy-loaded relationships. For example a Location
entity is related to a Country entity through a select query:
The Country entity then is not loaded by the Location DAO or the
Country DAO for that matte
Hi there,
I have 2 DATE fields on a MySQL table: 'expiry_date' and 'dispatched' that
are identical (apart from their names). They have a default value of NULL
and can be NULL (obviously).
They map to a java class that defines methods for both of them using
parameters String and Date, thus:
publi
Sure looks that way...what release of iBATIS is this? The latest? If
not, try that first.
Next, (if the upgrade doesn't fix it) I would ditch the include for
the insert, and put it right in the insert element (I am still trying
to figure out how many different places you would actually USE that
in
Hi Matilda,
That's because you're using a sqlMap tag to include a config file.
That won't work afaik.
Not sure there is a way to do that within iBATIS.
But you can try xml includes. I guess they'd work fine.
Hope that helped.
Cheers,
Daniel Silva.
On 10/11/05, Matilda Östling <[EMAIL PROTECTE
Hi,
I have a little problem. How do I include a SqlMapConfig-file into another
SqlMapConfig-file. In our project we have a file called
CommonSqlMapConfig.xml which we would like to include in all other more
specific xml-files.
I have tried
I do not get an errormessage while building the projec
hi,
Larry Meadors a écrit :
Try changing your included sql fragment to this:
insert into FUN_ERR_OBJ (
numObj, codGi, numLang,
codInf, typErrObj, libErrObj
) values (
#numObj:INTEGER#, #codGi:VARCHAR#, #numLang:INTEGER#,
#codInf:VARCHAR#, #typErrObj:VARCHAR#, #libErrOb
Not currently, no.
Larry
On 10/11/05, Zsolt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I use (SELECT,UPDATE) often table A and also B separately and also a query
> where both tables are joined, thus I have three caches (just an example).
>
> Is it possible to define relation between caches? What is th
Try changing your included sql fragment to this:
insert into FUN_ERR_OBJ (
numObj, codGi, numLang,
codInf, typErrObj, libErrObj
) values (
#numObj:INTEGER#, #codGi:VARCHAR#, #numLang:INTEGER#,
#codInf:VARCHAR#, #typErrObj:VARCHAR#, #libErrObj:VARCHAR#
)
I think if you look
Hi,
I use (SELECT,UPDATE) often table A and also B separately and also a query
where both tables are joined, thus I have three caches (just an example).
Is it possible to define relation between caches? What is the best way to
handle that?
Of course I have much more tables; this is just a very s
hello,
i've the following statements :
insert into FUN_ERR_OBJ values (#numErrObj:INTEGER#, #numObj:INTEGER#, #codGi:VARCHAR#, #numLang:INTEGER#,
#codInf:VARCHAR#, #typErrObj:VARCHAR#, #libErrObj:VARCHAR#)
and
parameterClass="fr.unire.portal.channels
Thanks All,
To sum it up I did the following (please
comment if there is a faster/better way):
-Created a select statement that returns
xml:
-Create an inner class in the DAO class
for the rowhandler to “stich” and control the creation of the xml
Document (using dom4j):
public
37 matches
Mail list logo