View previous topic :: View next topic |
Author |
Message |
BLS
Joined: 28 Mar 2006 Posts: 44 Location: France
|
Posted: Sun Sep 02, 2007 3:31 am Post subject: Data Layer |
|
|
Hi ,
Just a simple question : What kind of relations are supported.
for instance many to many, one to one, reflexive relations.
Do you have any ideas to support ref. integrity within the object-relation wrapper classes ?
Bjoern
PS : I like what I have seen so far |
|
Back to top |
|
|
aaronc542
Joined: 22 May 2007 Posts: 35 Location: NJ, USA
|
Posted: Mon Sep 03, 2007 10:52 am Post subject: |
|
|
Hi Bjoern,
Right now there HasOne and HABTM (Has and Belongs To Many) relationships are implemented. You could create a reflexive relationship simply by adding a HasOne field that points to the same class in which it belongs.
i.e.
class Person
{
PrimaryKey id;
HasOne!(Person) parent;
}
As of now, I have not planned on any specific built-in support for referential integrity. What would you suggest?
Aaron |
|
Back to top |
|
|
|