how can i use mutiple transction in thread?

2006-07-03 Thread Hoyoung Hwang
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

Re: Employee self-join one to many relationship (iBatis)

2006-07-03 Thread Larry Meadors
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

RE: Employee self-join one to many relationship (iBatis)

2006-07-03 Thread Rick
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,

Re: Employee self-join one to many relationship (iBatis)

2006-07-03 Thread Larry Meadors
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

Employee self-join one to many relationship (iBatis)

2006-07-03 Thread Rick
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

RE: error parsing xml files

2006-07-03 Thread Thomas Karl Schwaerzler
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

RE: error parsing xml files

2006-07-03 Thread Niels Beekman
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-

Re: error parsing xml files

2006-07-03 Thread Thomas Karl Schwaerzler
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

Re: error parsing xml files

2006-07-03 Thread Jeff Butler
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

Re: commitRequired=true

2006-07-03 Thread Jeff Butler
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

RE: java.io.NotSerializableException: com.ibatis.db.sqlmap.LazyLoadList

2006-07-03 Thread Poitras Christian
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

Re: error parsing xml files

2006-07-03 Thread Thomas Karl Schwaerzler
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

Re: error parsing xml files

2006-07-03 Thread Graeme J Sweeney
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

error parsing xml files

2006-07-03 Thread Thomas Karl Schwaerzler
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

commitRequired=true

2006-07-03 Thread Cornel Antohi
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

Re: Re: Unit test problem with sql cache

2006-07-03 Thread Graeme J Sweeney
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 -