# Framework

**URL:** <https://www.ruby-forum.com/t/framework/81565>\
**Category:** Rails\
**Created:** [March 14, 2006, 4:40am UTC](https://www.ruby-forum.com/t/framework/81565 "2006-03-14T04:40:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 4:40am UTC](https://www.ruby-forum.com/t/framework/81565/1 "2006-03-14T04:40:42Z")

</div>

hello all,

I need any framework that generate models using the database  
structure…  
Anyone knows if have this framework???

Thank’s

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 4:43am UTC](https://www.ruby-forum.com/t/framework/81565/2 "2006-03-14T04:43:38Z")

</div>

Bruno - ActiveRecord in Rails does just this: it allows you to build  
a model which has all of the attributes of the database table.

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 12:53pm UTC](https://www.ruby-forum.com/t/framework/81565/3 "2006-03-14T12:53:03Z")

</div>

Michael G. wrote:

> Bruno - ActiveRecord in Rails does just this: it allows you to build  
> a model which has all of the attributes of the database table.

I want a framework that create assosiations of ActiveRecord with only  
the struct of database…

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 1:15pm UTC](https://www.ruby-forum.com/t/framework/81565/4 "2006-03-14T13:15:45Z")

</div>

On 3/14/06, Bruno A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I want a framework that create assosiations of ActiveRecord with only  
> the struct of database…

What do you mean by “only the struct of database”. Can you provide an  
example or common use case for this framework?

It seems like what you want is good old ActiveRecord.

Cheers,

Thiago A.

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 1:25pm UTC](https://www.ruby-forum.com/t/framework/81565/5 "2006-03-14T13:25:17Z")

</div>

Michael G. wrote:

> I think what Bruno wants is a method to automatically build to  
> associations based on relationships in the database.
> 
> As far as I know, this isn’t possible.

Yes Michael i need this…I have any ideas to create this but before  
i needed knows if this frameworks exist…

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 1:18pm UTC](https://www.ruby-forum.com/t/framework/81565/6 "2006-03-14T13:18:47Z")

</div>

I think what Bruno wants is a method to automatically build to  
associations based on relationships in the database.

As far as I know, this isn’t possible.

---

<div class="post-metadata">

**Author:** ![beer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f04885/32.png) [@beer](https://www.ruby-forum.com/u/beer)\
**Post date:** [March 14, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/framework/81565/7 "2006-03-14T18:14:29Z")

</div>

Bruno,

On 3/14/06, Bruno A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Michael G. wrote:
> 
> > I think what Bruno wants is a method to automatically build to  
> > associations based on relationships in the database.
> 
> Yes Michael i need this…I have any ideas to create this but before  
> i needed knows if this frameworks exist…

Hmm… I think I now get what you want to do. I actually have worked  
on a project to do almost that, generating code to map relational  
database/table relationships to object oriented/class relationships. I  
am sorry to say that at least this part of the project didn’t turn out  
very well.

Anyway, I am interested in watching your efforts (and even  
contributing, shall my free time increase). Do you ultimately plan to  
build this framework on an open-source fashion (in case you don’t find  
what you want)? Please let me know of any progress.

Thanks,

Thiago A.
