The 'useLightweightEdges' setting does not change any existing edges. So you need to create the classes after the setting change if that's what you want. Additionally, if you add a property to the lightweight edge, it is converted to a regular edge.
As for Many2One and One2Many, you do need regular edges for that (not lightweight). For example create class Owns extends E create property out link Person create property in link Tool create index on Owns(in) unique This will set up a One2Many where a Person 'Owns' one or more Tool but a Tool can be owned by only one Person because of the unique index on 'in'. Similarly for Many2One create class Belongs extends E create property out link Tool create property in link Person create index on Belongs(out) unique Here any given Tool can belong to only one Person but other Tools can also belong to the same Person. Note: The syntax may be a little off. On Saturday, October 31, 2015 at 5:39:05 AM UTC-7, scott molinari wrote: > > I am going batty in general with Studio and creating edges. How come I can > create a light weight edges, when the setting "useLightweightEdges" is > set to false? Or do I need to create new classes after the setting was > changed and only then will this setting be taken into account? > > Scott > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
