Skip to content
Advertisement

Tag: one-to-one

Spring – how to automatically insert an entity in the database when inserting another (One-To-One relationship)?

Hi fellow software developers, Let’s assume we have the following scenario: we have a system where drivers can register. Each time a new Driver registers, the system automatically builds and assigns a Car to the driver. Let’s consider we have the following rest controller which exposes an endpoint for the drivers to register in the system: How would you Actually

Advertisement