Hi,

I have some association tables with attributes in my database. I'm migrating
a project from a traditicional JDBC to OJB. Suppose I have m:n relationship
from Teachers to Schools and association is represented by a TeacherSchools
table with several attributes in it.
I have several beans of the following form to represent associations:

public class Teacher implements Serializable
{
        private long id; /* key */
}

public class School implements Serializable
{
        private long id; /* key */
}

public class TeacherSchool implements Serializable
{
        private Teacher teacher;
        private School school;
        private String attribute1;
        private String attribute2;
...
}

I'm not sure about how to map this beans in the repository. Is there
anything like property association that let me use teacher.id, or something?
Anyway, this could be a nice feature to provide :)

Any help will be very useful.

Regards,
Elder


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to