Project

General

Profile

Actions

Support #345

closed

Circular references when using dbo features

Added by Michael Wagner about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
04/20/2010
Due date:
% Done:

0%

Estimated time:

Description

Hi,

How can I avoid circular references between the classes for my database objects? I have a class "Map" and a class "Layer" referring to two tables "map" and "layer". The tables have a many-to-one relationship (many layers to one map). To create the relationship and use the dbo::collection and dbo::ptr types I should include "Map.h" in "Layer.h" and "Layer.h" in "Map.h". Obviously that causes a problem when compiling. On the other hand I don't want put all classes into one file. Could you provide me with a hint please on how to deal with this issue!?

Many thanks!

Actions #1

Updated by Koen Deforche about 14 years ago

  • Status changed from New to Closed

See [[[http://redmine.webtoolkit.eu/boards/2/topics/show/290]]]

Actions

Also available in: Atom PDF