Question: Create an entity named posts and comments and create a one-to-many mapping using JPA. 1. 1 I posts id BIGINT(20) created_at DATETIME updated_at DATETIME content

Create an entity named posts and comments and create a one-to-many mapping using JPA. 1. 1 I posts id BIGINT(20) created_at DATETIME updated_at DATETIME content LONGTEXT description VARCHAR(250) title VARCHAR(100) comments id BIGINT(20) created_at DATETIME updated_at DATETIME text LONGTEXT post_id BIGINT (20) \00 Write a main program to assign values to the posts and comments entity using entity manager instance. Create an entity named posts and comments and create a one-to-many mapping using JPA. 1. 1 I posts id BIGINT(20) created_at DATETIME updated_at DATETIME content LONGTEXT description VARCHAR(250) title VARCHAR(100) comments id BIGINT(20) created_at DATETIME updated_at DATETIME text LONGTEXT post_id BIGINT (20) \00 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
