adrianopol wrote:
>> How is id + version different from number + version? id and number are
>> both auto-incrementing.
> I may have multiple objects with the same number, but with different
> versions. Id is unique.

Then number is not auto-incrementing, and there is no problem.  There's 
even a Rails plugin called acts_as_versioned that does exactly what 
you're describing.

> 
>> I don't see how Java is going to make this problem (with the design)
>> go away.
> There is a little 'framework' I am using. It is more clear for me to
> use raw sql-code for creating tables and manipulating with their data.

I did things this way for about 8 years.  Then I discovered Rails and 
now I wouldn't want to do without migrations and ActiveRecord.  I 
suggest you put a bit of time into learning Rails before you decide it's 
"more clear" to do without it.

> Abstracting from sql and specific DBMS in rails doesn't mean you
> shouldn't learn them and know, how they work. 


Absolutely right.

> But with JDBC I am not
> bound by limitations of different adapters. 

>From the little I know of JDBC, I don't think this is accurate.

> (PS: I don't want to start
> holy wars here :-) )

Then why are you making statements like this on the Rails list? :)

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to