db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bobbysojitra <bob...@sensorynet.co.uk>
Subject Torque save() method doesnt work for one object.. but works for others
Date Mon, 26 Jun 2006 14:41:23 GMT

Hi Guys

I have a torque schema with a few objects. myObject.save() works for all
objects (i.e. writes values to the database when adding or updating) except
1 object. 

Here is the part of the schema (see below) for the object which doesnt save. 

I dont get an error message or anything. It seems as if it has all worked
fine, but when I check the database, the object's values are as before.. any
ideas? Thanks in advance.

<table javaName="Step" name="steps">
		<idMethodParameter value="id" />
		<column javaName="id" name="id" primaryKey="true" required="true"
type="INTEGER" autoIncrement="true"/>
		<column javaName="taskId" name="taskId" required="true"	type="INTEGER"
default="0"/>
		<column javaName="stepId" name="stepId" required="true"	type="INTEGER"
default="0"/>
		<column javaName="stepName" name="stepName" required="false" default=""
type="VARCHAR" size="255"/>
		<column javaName="stepDescription" name="stepDescription" required="false"
default="" type="LONGVARCHAR"/>
		<column javaName="completed" name="completed" required="true"
type="INTEGER" default="0" />
		<column javaName="percentComplete" name="percentComplete" required="false"
type="INTEGER" default="0"/>
		<column javaName="weight" name="weight" required="false" type="INTEGER"
default="0"/>
		<column javaName="status" name="status" required="false" type="INTEGER"
default="0"/>
		<column javaName="updatedOn" name="updatedOn" required="true"
type="BIGINT"/>
	</table> 
--
View this message in context: http://www.nabble.com/Torque-save%28%29-method-doesnt-work-for-one-object..-but-works-for-others-t1849351.html#a5048217
Sent from the Apache DB - Torque Dev forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message