Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
2.3 kB
1
Indexable
Never
Certainly! Based on the columns you provided earlier, here's an example of the `YourEntity` class for your Spring Boot project:

```java
import javax.persistence.*;
import java.time.ZonedDateTime;

@Entity
@Table(name = "your_table_name")
public class YourEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "registered_date")
    private ZonedDateTime registeredDate;

    @Column(name = "last_updated_date")
    private ZonedDateTime lastUpdatedDate;

    @Column(name = "first_name")
    private String firstName;

    @Column(name = "last_name")
    private String lastName;

    @Column(name = "date_of_birth")
    private String dateOfBirth;

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

    @Column(name = "is_byblos_customer")
    private Boolean isByblosCustomer;

    @Column(name = "bo2_account")
    private String bo2Account;

    @Column(name = "bo2_currency")
    private String bo2Currency;

    @Column(name = "bo2_reference")
    private String bo2Reference;

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

    @Column(name = "is_active")
    private Boolean isActive;

    // Constructors, getters, and setters

    public YourEntity() {
        // Default constructor
    }

    // Getters and setters...

    public YourEntity(ZonedDateTime registeredDate, ZonedDateTime lastUpdatedDate, String firstName, String lastName, String dateOfBirth, String nationality, Boolean isByblosCustomer, String bo2Account, String bo2Currency, String bo2Reference, String cif, Boolean isActive) {
        this.registeredDate = registeredDate;
        this.lastUpdatedDate = lastUpdatedDate;
        this.firstName = firstName;
        this.lastName = lastName;
        this.dateOfBirth = dateOfBirth;
        this.nationality = nationality;
        this.isByblosCustomer = isByblosCustomer;
        this.bo2Account = bo2Account;
        this.bo2Currency = bo2Currency;
        this.bo2Reference = bo2Reference;
        this.cif = cif;
        this.isActive = isActive;
    }

    // Other constructors, getters, and setters...
}
```

Make sure to replace `"your_table_name"` with the actual name of your table. You may also want to customize the constructors and add other methods based on your specific needs.
Leave a Comment