asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
206 stars 21 forks source link

get nothing if there is @Data annotation on the entity class #90

Closed victor-yi closed 1 year ago

victor-yi commented 1 year ago

Describe the bug

I'm not sure if it's an issue here or should we report it to spring r2dbc, just create an issue here for tracking.

To Reproduce db schema:

create table user (
    id bigint auto_increment primary key ,
    name varchar(20) not null ,
    age tinyint not null
) engine = InnoDB;

entity class:

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

@Data
@Table("user")
public class User {
    @Id
    private Long id;
    private String name;
    private Integer age;
}
jchrys commented 1 year ago

Hello, @victor-yi.

Thank you for reaching out and providing the details of the issue you are encountering. While I understand your concerns, it would be more appropriate to report this issue to the Spring Data Relational team, as it does not seem to be directly related to the r2dbc-mysql project.

Please feel free to reach out if you have any other questions or concerns related to the r2dbc-mysql project.

Thanks!