Check out example codes for "error creating bean with name 'entitymanagerfactory' defined in class path resource spring boot". It will help you in understanding the concepts better.

Code Example 1

// Seems like you used @Id annotation from the wrong package in 
// your Degree class. 
// Change your 
import from 
// to 
import javax.persistence.Id. 
// That should help with the exception you're getting.

Learn ReactJs, React Native from