Top "Associations" questions

Associations typically refer to relationships between models in ORMs such as ActiveRecord.

UML: how to implement Association class in Java

I have this UML Association class. Note that: horizontal line is a solid line and the vertical line is a …

java associations uml
Rails Model, belongs to many

I'm having a hard time figuring out how to association one of my models with multiple of another. As it …

ruby-on-rails ruby-on-rails-3 associations model-associations
Rails association - how to add the 'has_many' object to the 'owner'

In my app, a user has many score_cards and a score_card belongs to a user The question is, …

ruby-on-rails-3 associations
C++ : Association, Aggregation and Composition

I'm beginning to study OOAD and I'm having difficulty finding a C++ code example that'd illustrate how Association, Aggregation and …

c++ oop associations aggregation ooad
Ruby on rails: Creating a model entry with a belongs_to association

I am trying to add a new entry in my database for a model that has a belongs_to relationship. …

ruby-on-rails ruby ruby-on-rails-3 associations
Hibernate unidirectional one to many association - why is a join table better?

In this document (scroll down to the Unidirectional section): http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#…

hibernate one-to-many foreign-keys associations
How to configure many to many relationship using entity framework fluent API

I'm trying to set up a many to many relationship in EF code first but the default conventions is getting …

c# entity-framework-4.1 ef-code-first associations
How to join unrelated entities with the JPA Criteria API

Two database tables have a foreign key relationship. They are mapped to two entities A and B by JPA, but …

java jpa join associations criteria-api
Grails - Removing an item from a hasMany association List on data bind?

Grails offers the ability to automatically create and bind domain objects to a hasMany List, as described in the grails …

data-binding grails groovy dns associations
Could not find the association problem in Rails

I am fairly new to Ruby on Rails, and I clearly have an active record association problem, but I can't …

ruby-on-rails activerecord associations models