Код: Выделить всё
@Entity
@Data
@AllArgsConstructor
@Table(name = "doctor_info")
public class DoctorInfo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
@Column
private String fullName;
@Column
private String department;
@Column
private String userName;
@Column
private String password;
}
Код: Выделить всё
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql = true
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.datasource.url=jdbc:postgresql://localhost:5432/hospital
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.username=postgres
spring.datasource.password=root
spring.datasource.initialization-mode=always
spring.datasource.initialize=true
Подробнее здесь: https://stackoverflow.com/questions/770 ... any-except
Мобильная версия