On Fri, 26 Jul 2002, Stephen Haberman wrote:

> Just to make sure I understand what you're saying, that if
> defaultIdMethod="native", then autoIncrement should be assumed? As I
> think if you added autoIncrement="true" to your primary key columns,
> you'd get the correct SQL output.

I was more so saying that the documentation, which currently says that a 
primary key will be autoincremented, should be consistent with the actual 
behavior.

I am mainly going off of the tutorial which has the section I mentioned
before, but also none of the examples has an autoincrement value and
would, I believe, fail if actually used with the native method. (Two Books
are created without setting the key in either, so he second would violate
the unique check.  Depending on the database and if there is a default it
seems like the first might fail not null.)

If I was using the idbroker would my primary keys be autoincremented 
regardless of backing store? I had this same schema in mysql yesterday and 
those keys are not autoincremented either.

I personally think that the autoincrement="true" should be the proper
method to get an autoincrement. I was just pointing out that someone
working from the tutorial and switching to native method will not get the
expected results.

I am going to wait and see if the turbine security stuff doesn't work with 
the native setting. Since the id's are not autoincremented, I am guessing 
it will break.

Will


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

Reply via email to