on 9/4/01 12:01 PM, "Atul Dambalkar" <[EMAIL PROTECTED]> wrote: > I am now using stand-alone Torque for the database table SQL and OM > generation. > > I could generate the Peer classes, with idMethod="idbroker" but if I try to > use "idMethod=native" it fails with the following message: > =================== > Error Line: 39 Row: 57 Msg: Attribute "idMethod" with value "native" must > have a value from the list "(idbroker|autoincrement|sequence|none|null)". > ==================== > > Apparently, it looks that, the Torque2.1 release build doesn't seem to > support "native" value. Documentation is a bit confusing. Or do I have to > download a different version? > > -Atul Correct. 2.1 does not support native. It is supported in the CVS version of Torque as it is a new feature. "autoincrement" and "sequence" is deprecated in the new version because it doesn't make sense to hard code specific database related information into the .xml file. I believe that you said earlier that you wanted to use the idbroker, so that is the right thing to put in there. Either way, I would use idbroker all the time anyway...in some ways, it is better to always use an idbroker instead of the native because idbroker can be smart about giving out id's as well as save hits to the database (ie: to retrieve the last inserted value). -jon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
