Post relational data, Spring JPA REST <p>I have a relational database with a normalized form of my data, but my API will need to receive the information in a denormalized way, what is the correct way to handle this? Is it a matter of creating a new endpoint with the fields denormalized? </p> <p>How would I decouple that from the database so that Spring Boot doesn't create a new table for me? </p> <p>For example, here are (some of) my tables:</p> <pre><code>@Entity public class TestCase { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private String name; private String description; } @Entity public class TestRun { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private Boolean result; private String username; @OneToOne private TestData testData; @ManyToOne private TestCase testCase; } @Entity public class TestData { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long id; private int count; @ManyToOne private RecordType recordType; } </code></pre> <p>I want to create an API endpoint that will create new entries in TestRun and TestData at the same time, while referencing existing entries in TestCase and RecordType. </p> <p>How is this done?</p> <p>A complete answer needs to show:</p> <ul> <li>What format the data would take when its posted to the server</li> <li>What component will handle that post</li> <li>How that component will update the different Entities</li> </ul>