Spring Boot – Cannot determine embedded database driver class for database type NONE

You haven’t provided Spring Boot with enough information to auto-configure a DataSource. To do so, you’ll need to add some properties to application.properties with the spring.datasource prefix. Take a look at DataSourceProperties to see all of the properties that you can set. You’ll need to provide the appropriate url and driver class name:

JPA or JDBC, how are they different?

In layman’s terms: JDBC is a standard for Database Access JPA is a standard for ORM JDBC is a standard for connecting to a DB directly and running SQL against it – e.g SELECT * FROM USERS, etc. Data sets can be returned which you can handle in your app, and you can do all … Read more

Hibernate problem – “Use of @OneToMany or @ManyToMany targeting an unmapped class”

Your annotations look fine. Here are the things to check: make sure the annotation is javax.persistence.Entity, and not org.hibernate.annotations.Entity. The former makes the entity detectable. The latter is just an addition. if you are manually listing your entities (in persistence.xml, in hibernate.cfg.xml, or when configuring your session factory), then make sure you have also listed the ScopeTopic entity make … Read more

How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error

You should include cascade=”all” (if using xml) or cascade=CascadeType.ALL (if using annotations) on your collection mapping. This happens because you have a collection in your entity, and that collection has one or more items which are not present in the database. By specifying the above options you tell hibernate to save them to the database when saving their parent.