I\'m creating a simple app to just insert a row to a table (if table does not exist, create it) using Java JPA.
Java JPA
I\'m attaching some code for a runnable exam
You can use this contrustor like this:
Person p = new Person(0, "Peter", "Parker");
then when JPA persist to database it'll automatically insert with AUTO_INCREMENT strategy.
AUTO_INCREMENT