Annotation Interface Entity
Annotation for mapping entity classes to database tables.
Entities are simple POJOs that map to database rows. Field names are automatically converted to snake_case column names.
Example:
@Entity
public class UserSetting {
private Long id; // maps to 'id' column (auto)
private Long userId; // maps to 'user_id' column
private String settingName; // maps to 'setting_name' column
private String settingValue;
private Instant createdAt; // auto-managed
private Instant updatedAt; // auto-managed
// Getters and setters...
}