roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r1065321 - /roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml
Date Sun, 30 Jan 2011 17:07:13 GMT
Author: snoopdave
Date: Sun Jan 30 17:07:13 2011
New Revision: 1065321

URL: http://svn.apache.org/viewvc?rev=1065321&view=rev
Log:
Attempting to fix odd JUnit test failure that happens on Apache's Hudson install, somehow
MediaFile.dateUdpate is apparently being set to the current time then inexplicably set back
to null before save. I can't duplicate this on my machine.

Caused by: <openjpa-2.0.0-r422266:935683 fatal general error> org.apache.openjpa.persistence.PersistenceException:
Column 'DATE_UPLOADED'  cannot accept a NULL value. {prepstmnt 15408035 INSERT INTO roller_mediafile
(id, content_type, copyright_text, creator, date_uploaded, description, height, last_updated,
size_in_bytes, name, origpath, is_public, width, directoryid, weblogid) VALUES (?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [params=(String) 68355ea1-071a-4a4b-b515-224a4f0f4ec8, (String)
image/jpeg, (String) test copyright text, (null) null, (null) null, (String) This is a test
image, (int) -1, (null) null, (long) 2000, (String) test_file7.jpg, (null) null, (int) 1,
(int) -1, (String) 2f66a8d2-9e89-4c44-bf5f-749751c30c3c, (String) 07c769c0-89ad-4983-a3a6-50faae42c0f9]}
[code=-1, state=23502]
FailedObject: org.apache.roller.weblogger.pojos.MediaFile@cc4364

Modified:
    roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml

Modified: roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml?rev=1065321&r1=1065320&r2=1065321&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml
(original)
+++ roller/trunk/weblogger-business/src/main/resources/org/apache/roller/weblogger/pojos/MediaFile.orm.xml
Sun Jan 30 17:07:13 2011
@@ -44,7 +44,7 @@
                 <column name="size_in_bytes" insertable="true" updatable="true" unique="false"
nullable="true"/>
             </basic>
             <basic name="dateUploaded">
-                <column name="date_uploaded" insertable="true" updatable="false" unique="false"/>
+                <column name="date_uploaded" insertable="true" updatable="true" unique="false"/>
             </basic>
             <basic name="lastUpdated">
                 <column name="last_updated" insertable="true" updatable="true" unique="false"/>



Mime
View raw message