Having Two Projects
my-app
my-entities
I have my entities in my-entities and i uploading this repository to bitbucket fro hosting then using same repository in my "my-app" project which is a spring boot application and containing database configs like username, dbname, password and i am using spring data jpa with
spring.jpa.hibernate.ddl-auto=update
Sample Entity class present in my-enties
@Entity
public class OrganisationDetails {
@Id
@GeneratedValue
private Long id;
private String name;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String toString() {
return "OrganisationDetails{" +
"id=" + id +
", name='" + name + ''' +
'}';
}
}
But tables are not created automatically.