Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
box design
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ritvvij Parrikh  
View profile  
 More options Oct 27, 9:34 am
From: Ritvvij Parrikh <ritvi...@gmail.com>
Date: Tue, 27 Oct 2009 08:34:25 -0500
Local: Tues, Oct 27 2009 9:34 am
Subject: box design

Hello Guys,

I had a question. I had designed something in Java and was thinking if it
can be replicated in ROR.
I could not think of a way, so asking.

*Application Data Model** - 1 / 2 Tables*
Java Class called *Box* with 4 attributes:
1. Cardinality (minimum number allowed, maximum number allowed, default add
number)
2. Name (Multiple versions of names) based on usage
3. Attributes - This class can hold 0 to infinite attributes without table
change
4. Relations - allows attaching multiple empty_item_type by defining
relations and grouping

*Reference Model - 1 / 2 Tables*
We then used this Box class to define / design complex hierarchical
templates without database change.
Each template is stored in a reference table called templates.

*Code*
Then we write business logic code for each templates

*User usage
*1. Chose template and create new application object
2. Start using it

*How to do it in ROR?*
1. Instead of using automatic ROR based GUI-CODE-DB attribute mapping, write
my own code to do it
2. But then whats the advantage of using ROR
3. Is there any simpler way of making this work?


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google