zhangjingl02 / activejdbc

Automatically exported from code.google.com/p/activejdbc
0 stars 0 forks source link

Add Many2ManyCollection annotation for cases when you have to override default behaviod #108

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
but there are more than one many to many relationships:

Proposed new API:

@Many2ManyCollection({
@Many2Many(other = Doctor.class, join = "medical_schedule", sourceFKName = 
"person_id", targetFKName = "doctor_id")
Many2Many(other=Course.class,join = "course_attendance", sourceFKName = 
person_id", targetFKName = "course_id")
})
public class Person extends Model{}

Original issue reported on code.google.com by ipolevoy@gmail.com on 3 Aug 2011 at 9:32

GoogleCodeExporter commented 9 years ago
this is similar to: 
http://code.google.com/p/activejdbc/wiki/OneToManyAssociation#Override_Conventio
ns

Original comment by ipolevoy@gmail.com on 3 Aug 2011 at 9:34