You can view the issue detail at the following URL:
<http://scarab.werken.com/scarab/issues/id/TRQS83>

Type :        Defect
Issue Id :    TRQS83
Reported by: Quinton McCombs
             quintonm - ([EMAIL PROTECTED])

Details:

Summary: defaultIdMethod is being ignored
Description: I have just run into a problem where the idMethod was not being set to 
the defaultIdMethod during generation of my object model.  I have the defaultIdMethod 
set to "native".  I do not specify idMethod for any of my tables.  The database type 
is Oracle.

I noticed this when torque did not generate the primary keys for me as it should have. 
 I looked at map.<tableName>MapBuilder and saw  the following code in the doBuild() 
method

tMap.setPrimaryKeyMethod(null);

I put some log statements into o.a.torque.engine.database.model.Table in the 
loadFromXml method.  the defaultIdMethod evaluated to "native".  The idMethod was 
null.  I saw the following test being done to see if the idMethod was set:

if ("null".equals(idMethod))

Obviously, this will never evaluate to true if the value of idMethod is a null value.  



Status: New


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to