Getting an error after connecting dedicated mysql database to my code!

# MySQL Configuration
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/main
spring.datasource.username=**
spring.datasource.password=**
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver```

Here is my Person class
```Java
@Entity
@Table(name = "logintable")
public class Person extends AbstractEntity {

    @Column(name = "firstname")
    private String firstname;

    @Column(name = "lastname")
    private String lastname;

    @Column(name = "email")
    private String email;

    @Column(name = "role")
    private Role role;
    private String passwordSalt;
    private String passwordHash;
    private String activationCode;
    private boolean active;

    public Person() {
    }

    public Person(String firstname, String lastname, String email, String password, Role role) {
        this.firstname = firstname;
        this.lastname = lastname;
        this.email = email;
        this.role = role;
        this.passwordSalt = RandomStringUtils.random(32);
        this.passwordHash = DigestUtils.sha1Hex(password + passwordSalt);
        this.activationCode = RandomStringUtils.randomAlphanumeric(32);
    }

//getters and setters below```
![image.png|259x329](upload://9xJwe573GuwApY6f9MPirveKwPm.png)

here is the error
message.txt (39.6 KB)

Well, seems you have not created the field username within your repository / db?

Your error log says:

com.pack.website.data.service.PersonRepository.getByUsername(java.lang.String)! No property ‘username’ found for type ‘Person’;

MOJO

TY

it works

ur too good ty

but now everything else broken but ill look into it