Question: I want the solution quickly please, I have no time. 1. Create an entity named posts and comments and create a one-to-many mapping using JPA.
1. Create an entity named posts and comments and create a one-to-many mapping using JPA. posts id BIGINT(20) created_at DATETIME updated_at DATETIME content LONGTEXT description VARCHAR(250) title VARCHAR(100) m comments id BIGINT(20) created at DATETIME updated_at DATETIME text LONGTEXT post_id BIGINT (20) 100 Write a main program to assign values to the posts and comments entity using entity manager instance
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
