How to model the following relationship

54 views
Skip to first unread message

Aravindh S

unread,
Nov 29, 2014, 11:04:36 AM11/29/14
to sqlk...@googlegroups.com
Hi, I am trying to model the following relationship in a postgres db.

Person
      name : string
      address : string
      phone : string

Student
     father : person
     mother : person
     student : person


How to model this in korma?

Thanks
Aravindh.S

Immo Heikkinen

unread,
Dec 10, 2014, 8:20:22 AM12/10/14
to sqlk...@googlegroups.com
If you're asking how to define entities, Korma doesn't currently support multiple relations between two tables.

You can work around it by defining entities for father, mother and student, and point them all to Person table.

--
You received this message because you are subscribed to the Google Groups "Korma" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlkorma+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Geert Vermeiren

unread,
Apr 14, 2015, 10:26:40 AM4/14/15
to sqlk...@googlegroups.com
Is anyone already working on including this, or is this an opportunity to pitch in and have a go at it ?
Reply all
Reply to author
Forward
0 new messages