Re: Scarab commit: svn commit: r10490 - trunk/src/java/org/tigris/scarab: om util/xmlissues

Mick Semb Wever <[email protected]>
Newsgroups gmane.comp.java.scarab.devel
Message-ID <[email protected]>
Ronny,

> New Revision: 10490
> Modified:
>    trunk/src/java/org/tigris/scarab/om/Issue.java
>    trunk/src/java/org/tigris/scarab/util/xmlissues/ScarabIssues.java
> Log:
> SCB2426: ensure that the lastTransId and createdTransId is always filled
> with a valid reference when an Issue is saved, because this information
> is mandatory. This is especially required if an action crashes and some
> data is left on the db (Scarab is not using DB-Transactions :( ). Better
> an orphaned ActivitySet, than an Issue without valid ActivitySets.

 i got some problems with this commit.
During importing of issues the AttributeValue.save(), given it's a new
attribute, fails
 (throwing "SQLException: Column 'ISSUE_ID' cannot be null")
because its associated Issue hasn't yet yet been saved.

Undoing this commit was enough to get importing (from jira) 
working for me again.

Do you have any objections if i undo that change?
Is there a way to obtain and assign the issueId in the Issue
without saving it?

~mck

-- 
"The reward of patience is patience." St. Augustine
| www.semb.wever.org | www.sesat.no | www.sesam.no |
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.