So I'm working with Apache beam with SpringBoot, and with JDBCIO in .query I'm retrieving records from table "customer" (select * from records.customer where customer_code = "abc").So this "customer" class should be an entity or a DTO ?
My understanding is we need an entity only when we are working with repositories. Correct me if I'm wrong.