openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Sutter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENJPA-2323) Create upto 2000 versions Updates
Date Fri, 18 Jan 2013 14:10:12 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kevin Sutter resolved OPENJPA-2323.
-----------------------------------

    Resolution: Invalid
      Assignee: Kevin Sutter

The OpenJPA community uses the mailing lists (http://openjpa.apache.org/mailing-lists.html)
for answering questions.  OpenJPA uses JIRAs for documenting bugs and feature requests.  You
might get a better response if you re-post to the OpenJPA users mailing list.  Good luck.

A bit of advice...  You will need to provide more background data to further describe your
environment and scenario.  Personally, I wouldn't have a clue on how to respond to your question.
 Thanks.
                
>  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
>            Assignee: Kevin Sutter
>
> 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