Question about optionality in one-to-one relationships

2024-01-09 Thread Riccardo De Menna
Hi, Can someone help me understand something? I’m trying to model a one-to-one relationship between two entities but I can’t seem to get the relationship to be optional. In my specific case I need to model an entity representing shipments with a postal service. Each shipment needs to have a nu

Re: Question about optionality in one-to-one relationships

2024-01-09 Thread Michael Gentry
Hi Riccardo, I may have completely misunderstood your intention, but here is my first cut for a model: cayenne-o2o.xml: http://cayenne.apache.org/schema/10/domain"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://cayenne.apache.org/schema/10/domain https://cayen

Re: Question about optionality in one-to-one relationships

2024-01-09 Thread Riccardo De Menna
Hi Michael, Thank you for helping. Yes… you modeled exactly what I described down to the delete rules. I imported your files in modeler and run class generation but I still get the relationship (TO_SHIP in your model) to appear as mandatory. Could it be an issue in class generation? This is a