Questions tagged [object-relationships]
36 questions
1
vote
1 answer
How do I get a Rails association to use a certain name to access a model of a different name?
Let's say I have a user model and a movie model as well as tables to store them. Let's say I want to add a watchlist feature by adding a third table called watchlist_movies that simply maps a user_id to a movie_id.
I now want to add a…

Captain Stack
- 3,572
- 5
- 31
- 56
1
vote
1 answer
Passing extra parameter through a link
In my application I have user and activities tables and the user has three activities.
I have a home page with three buttons on it. If the user presses button 1, I want to navigate to the activities index page and set the attribute activity_type to…

Jarvey
- 75
- 8
1
vote
2 answers
What is the relationship between a card and deck in a Class Diagram (Texas Hold 'em)?
What is the relationship between a card and deck in a Class Diagram (Texas Hold 'em)? I'm still trying to understand how the relationships work in a class diagram. If a deck consists of cards, wouldn't that be a composition considering that…

Leonardo Montoya
- 11
- 2
1
vote
1 answer
what is the difference object database systems?
Comparison of object database management systems: http://en.wikipedia.org/wiki/Comparison_of_object_database_management_systems
and
Comparison of object-relational database management systems:…

Mustafa
- 931
- 1
- 13
- 26
1
vote
3 answers
how to model value object relationships?
context:
I have an entity Book. A book can have one or more Descriptions. Descriptions are value objects.
problem:
A description can be more specific than another description. Eg if a description contains the content of the book and how the cover…

koen
- 13,349
- 10
- 46
- 51
1
vote
1 answer
Core data relationships vs. server based foreign keys
I have a complex iPad app moving to use Core Data. I receive data from a server which has foreign keys built into the various tables to represent relationships between tables (entities).
As I rewrite the app to use Core Data, should I maintain the…

David
- 2,770
- 5
- 35
- 43
0
votes
2 answers
Creating a relationship between a Raphael Path to a Database ID
We've created a floor plan with Raphael with specific coordinate paths. Each one of those paths point to a specific seat. The seat is represented by a circle. So when you mouse hover over that circle an action is executed and a tool tip appears.…

Ali
- 1
- 2
0
votes
1 answer
SqlAlchemy many to many relation with mm table
I am still a beginner in Python and I am stuck with the following relation.
Three tables:
tx_bdproductsdb_domain_model_product
sys_category
sys_category_record_mm
sys_category class looks like this:
class Category(Base):
__tablename__ =…

Socressor
- 13
- 4
0
votes
1 answer
How can I pass messages between objects in Java
I am attempting to pass messages between objects in Java with OOP concept. I created two classes named Doctor and Receptionist, and I want instances of the Receptionist class to send messages to Doctor's objects. I also want objects of class Patient…

Celestine Akpanoko
- 21
- 4
0
votes
1 answer
save entity array under another entity CoreDataRelationships
Im working on an app where a merchant can add a bunch of products into a persons tab.
After selecting the customer from a table view the user can see a list of products and the total amount which I'd like to save under that customers name for him to…

Eugenio Mercado
- 5
- 4
0
votes
0 answers
How to insert data in sub collections based on entry of parent collection field in nodejs mongodb
Here is my AdminSchema which takes input of Username, Password and AccountType while registration of user. Based on the registration accounttype we have two options i.e., (Judge,Student) w.r.t creation we need to connect the record with the…

vikas madoori
- 147
- 1
- 11
0
votes
1 answer
creating classes to reflect my database model
I'm trying to write my first object oriented project in php, i've done oop before but it was a while back and it wasn't in web dev with a database model so it's a little different and i'm having trouble creating classes.
anyways, my problem is that…

Adrian
- 77
- 9
0
votes
2 answers
Best approach for many-to-many relationship in Entity Framework code-first
I've been re-examining the way I'm using entities and I need advice.
I'm creating a yoga booking service and each user will have a profile, spaces to meet up for yoga and events, with a date and time, for each space to meet up.
So my relationships…

chuckd
- 13,460
- 29
- 152
- 331
0
votes
2 answers
OrientDb edge between multiple vertex
I am trying to model data for OrientDB. I am new to graph-database. I got doubt during modeling (paradigm change from RDBMS to GraphData).
How model tertiary (3-way i.e. between 3-vertex) relationship in Graph database (OrientDB)? An example is as…

Meghnad Mahata
- 3
- 2
0
votes
1 answer
Referencing data in JSON
In a JSON payload, how does one refer to data at one place from another?
Use Case : Imagine well-defined serializable entities A (a1, a2, a3) and B (b1, b2, b3). Now consider an HTTP request payload that expects the following:
{
data : {
…

DanglingPointer
- 261
- 1
- 6
- 19