i can't use muitple transaction.
how can i use mutiple transction?
i don't use daoManager. just using SqlMap.
example.
sqlmapclient.startTransaction();
sqlmapclient.insert("table.insert",table);
newTrans = sqlmapclient.openSession();
newTrans.startTransaction();
newTrans.insert("logtable.inse
Hmm, I generally don't build my object model that way, so my
experience with groupBy is sort of limited, sorry. ;-)
If you can't make groupBy work, I'd look at doing this with a
rowhandler. You'd get all the data in one hit to the database, and
then step through the results building the object gr
Bingo!
Yep. Employee has a directReports list which is a list of Employees.
-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Monday, July 03, 2006 3:19 PM
To: user-java@ibatis.apache.org
Subject: Re: Employee self-join one to many relationship (iBatis)
Hey Rick,
Hey Rick, I am not 100% sure I understand what you are trying to do,
but let me try to restate it and see..
Do you want a list of employees, each one with another list of
employees (direct reports), and a list of contacts on each one - both
the main employee list and the child employees?
Larry
I just want to use iBatis in the cleanest way possible. I
have a workaround but wonder if iBatis support self-joined one to many
relationships.
Let me explain….
I have a query that returns employees.
Employees have Boss’s who are Employees.
Currently I have Employees have
yepp!
seems to work.
typical human read error. :)
thanks again..
t.
On Mon, 3 Jul 2006, Niels Beekman wrote:
Look more closely to the example Jeff posted, the DAO manager links a
DAO-interface to a concrete implementation (see interface and
implementation attributes in the DAO config). Som
Look more closely to the example Jeff posted, the DAO manager links a
DAO-interface to a concrete implementation (see interface and
implementation attributes in the DAO config). Something like:
OdmLinkDAO linkDao = (OdmLinkDAO)daoManager.getDao(OdmLinkDAO.class);
Niels
-Original Message-
now i tried this:
OdmLinkDAOImpl linkDao =
(OdmLinkDAOImpl)daoManager.getDao(OdmLinkDAOImpl.class);
the error i get doesnt really give me a clue:
Exception in thread "main" com.ibatis.dao.client.DaoException: There is no
DAO implementation found for class
org.dea.odm.model.dao.test.dao.Od
Are you using the DAO manager to get the dao, or are you trying to create the DAO impl class yourself? You should have code like this somewhere:
OdmLinkDAO linkDao = daoManager.getDao(OdmLinkDAO.class);
You should NOT have this:
OdmLinkDAOImpl linkDao = new OdmLinkDAOImpl(daoManager);
Jef
It forces iBATIS to commit the transaction - even if there have only been selects. But, in WAS this is far less overhead than the exceptions that WAS will throw for every transaction if you don't set this.
Jeff Butler
On 7/3/06, Cornel Antohi <[EMAIL PROTECTED]> wrote:
Hi,
As I understood
As far as I know, lazy objects cannot be serialized.
Christian
-Original Message-
From: Neeraj Varshney [mailto:[EMAIL PROTECTED]
Sent: Friday, 30 June 2006 05:04
To: user-java@ibatis.apache.org
Subject: java.io.NotSerializableException:
com.ibatis.db.sqlmap.LazyLoadList
Hi,
I am usin
thanks.
indeed it was a namespace problem.
adding this line solved my problem.
but now i get another error when calling a dao method:
OdmLinkExample ole = new OdmLinkExample();
ole.setWorkflowId(new BigDecimal(1));
ole.setWorkflowId_Indicator(OdmLinkExample.EXA
On Mon, 3 Jul 2006, Thomas Karl Schwaerzler wrote:
com.ibatis.common.exception.NestedRuntimeException: Could not find SQL
statement to include with refid
'user_ODM_LINK.abatorgenerated_Example_Where_Clause'
Is it a namespace issue?
here my SqlMapConfigAbator.xml
http://www.ibatis.com/d
hello,
if i try to instantiate DaoManager:
reader = new FileReader(DaoConfigPath);
DaoManager dm = DaoManagerBuilder.buildDaoManager(reader);
i get the following error:
Exception in thread "main" com.ibatis.dao.client.DaoException: Error while
configuring DaoManager. Cause:
com.ibatis.co
Hi,
As I understood for WAS configuration we shold use
"commitRequired=true". Could you please tell me how much overhead is added by
this config?
Thank you,
Cornel
On Mon, 3 Jul 2006, Anthony Hong wrote:
Is this impossible to achieve?
If there is no inherent iBatis solution then an alternative is to change
your build configuration to pull in the correct config file at run time.
--
Graeme -
16 matches
Mail list logo