ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BJ Freeman (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (OFBIZ-1969) Setting the SequenceValueItem once the seed and ext data is loaded.
Date Thu, 02 Oct 2008 21:17:44 GMT

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

BJ Freeman resolved OFBIZ-1969.

    Resolution: Fixed

ready for commit 

> Setting the SequenceValueItem once the seed and ext data is loaded.
> -------------------------------------------------------------------
>                 Key: OFBIZ-1969
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1969
>             Project: OFBiz
>          Issue Type: Bug
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: BJ Freeman
>            Priority: Minor
>             Fix For: SVN trunk
> when doing a ant run-install-extseed of a new  system.
> and then system includes ID's that are equal to or greater than the SequenceValueItem
seqName  	seqId
> this is to prevent errors when getNextSeqId is called.
> these must be adjusted by two means.
> 1) export the SequenceValueItem.xml from the system that generated the ID's then including
only the IDs of the entities included  in the data to be initialized.
> ie 
> {code}
>     <SequenceValueItem seqName="ContactMech" seqId="10190" lastUpdatedStamp="2006-06-18
02:50:14.21" lastUpdatedTxStamp="2006-06-18 02:50:14.16" createdStamp="2006-06-18 02:50:14.21"
createdTxStamp="2006-06-18 02:50:14.16"/>
> {code}
> 2) a service for that is passed the seqName  will check the entity for the seqName name
and set the seqId to a numbe 1 higher than the entitiy shows.
> ie: if ContactMech entity highest number is 10004 then the servcie will set seqName (ContactMech)
	seqId  to 10005

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message