openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2323) Create upto 2000 versions Updates
Date Fri, 18 Jan 2013 06:34:13 GMT
Raghu created OPENJPA-2323:
------------------------------

             Summary:  Create upto 2000 versions Updates
                 Key: OPENJPA-2323
                 URL: https://issues.apache.org/jira/browse/OPENJPA-2323
             Project: OpenJPA
          Issue Type: Question
    Affects Versions: 1.2.2
         Environment: Windows 2008 Standard, Websphere 7.0.0.19
AIX, Oracle 11i
            Reporter: Raghu


1) The below code is placed in a Batch Job, which is processing about 100 records every minute.

2) Recently, this job is split into two, for processing different set of data. 
3) This is causing upto 2000 version updates in the Table, when both the Jobs were invoked
parallel. 

Need to know why this is happening? Anyone can advise?

 * @see sg.com.nhg.epos.model.intrface.IDataService#saveBillOrderItem(sg.com.nhg.epos.domain.entities.BillOrderItemTx)
	 */
	@Override
	public BillOrderItemTx saveBillOrderItem(BillOrderItemTx billOrderItem) {
		BillOrderItemTx updatedbillOrderItem = null; 
		if(Long.valueOf(billOrderItem.getId())==null || Long.valueOf(billOrderItem.getId())==0L)
			updatedbillOrderItem=(BillOrderItemTx)billOrderItemTxBean.create(billOrderItem);
		else
			updatedbillOrderItem=(BillOrderItemTx)billOrderItemTxBean.update(billOrderItem);			
		return updatedbillOrderItem;
	}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message